Bump version, downgrade engine to LTS

This commit is contained in:
nolash 2021-04-08 16:32:39 +02:00
parent eb860a403f
commit ed02b7635b
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 11 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "cic-client-meta", "name": "cic-client-meta",
"version": "0.0.7-alpha.5", "version": "0.0.7-alpha.6",
"description": "Signed CRDT metadata graphs for the CIC network", "description": "Signed CRDT metadata graphs for the CIC network",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
@ -40,6 +40,6 @@
], ],
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"engines": { "engines": {
"node": "~15.3.0" "node": "~14.16.1"
} }
} }

View File

@ -50,10 +50,8 @@ function doOne(keystore, filePath, address) {
const o = vcfp.parse(s); const o = vcfp.parse(s);
const phone = o.tel[0].value; const phone = o.tel[0].value;
cic.Phone.toKey(phone).then((uid) => {
cic.Phone.toKey(address, phone).then((uid) => {
const o = fs.readFileSync(filePath, 'utf-8'); const o = fs.readFileSync(filePath, 'utf-8');
fs.unlinkSync(filePath);
const s = new cic.Syncable(uid, o); const s = new cic.Syncable(uid, o);
s.setSigner(signer); s.setSigner(signer);
@ -119,6 +117,7 @@ function importMetaPhone(keystore) {
); );
doOne(keystore, metaFilePath, address); doOne(keystore, metaFilePath, address);
fs.unlinkSync(filePath);
count++; count++;
batchCount++; batchCount++;
if (batchCount == batchSize) { if (batchCount == batchSize) {

View File

@ -5,7 +5,7 @@
"packages": { "packages": {
"": { "": {
"dependencies": { "dependencies": {
"cic-client-meta": "^0.0.7-alpha.4", "cic-client-meta": "^0.0.7-alpha.5",
"vcard-parser": "^1.0.0" "vcard-parser": "^1.0.0"
} }
}, },
@ -317,9 +317,9 @@
"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
}, },
"node_modules/cic-client-meta": { "node_modules/cic-client-meta": {
"version": "0.0.7-alpha.4", "version": "0.0.7-alpha.5",
"resolved": "https://registry.npmjs.org/cic-client-meta/-/cic-client-meta-0.0.7-alpha.4.tgz", "resolved": "https://registry.npmjs.org/cic-client-meta/-/cic-client-meta-0.0.7-alpha.5.tgz",
"integrity": "sha512-f27cL/IHHoU1jTslCgjFZzq9yk3rr2P3kyMTnqOIgXAzINSRdSVsJqhbIRqV/iVeBztvpk1ECsq6Xfn2lU7siw==", "integrity": "sha512-h+0wmAKZIgezppBNYDmG387w6tI91FSWqONMTZbMuaO1Ej76Gg0Mk2UcDyAF/dmY6doXz3kHAbWkWat7mTzXAQ==",
"dependencies": { "dependencies": {
"@ethereumjs/tx": "^3.0.0-beta.1", "@ethereumjs/tx": "^3.0.0-beta.1",
"automerge": "^0.14.1", "automerge": "^0.14.1",
@ -2378,9 +2378,9 @@
"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
}, },
"cic-client-meta": { "cic-client-meta": {
"version": "0.0.7-alpha.4", "version": "0.0.7-alpha.5",
"resolved": "https://registry.npmjs.org/cic-client-meta/-/cic-client-meta-0.0.7-alpha.4.tgz", "resolved": "https://registry.npmjs.org/cic-client-meta/-/cic-client-meta-0.0.7-alpha.5.tgz",
"integrity": "sha512-f27cL/IHHoU1jTslCgjFZzq9yk3rr2P3kyMTnqOIgXAzINSRdSVsJqhbIRqV/iVeBztvpk1ECsq6Xfn2lU7siw==", "integrity": "sha512-h+0wmAKZIgezppBNYDmG387w6tI91FSWqONMTZbMuaO1Ej76Gg0Mk2UcDyAF/dmY6doXz3kHAbWkWat7mTzXAQ==",
"requires": { "requires": {
"@ethereumjs/tx": "^3.0.0-beta.1", "@ethereumjs/tx": "^3.0.0-beta.1",
"automerge": "^0.14.1", "automerge": "^0.14.1",