ipfs-repo-migrations
Advanced tools
Comparing version 11.0.1 to 11.0.2
@@ -24,5 +24,3 @@ 'use strict'; | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
get: function () { return e[k]; } | ||
}); | ||
@@ -32,3 +30,3 @@ } | ||
} | ||
n['default'] = e; | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
@@ -42,3 +40,3 @@ } | ||
const log = debug__default['default']('ipfs:repo:migrator:migration-8'); | ||
const log = debug__default["default"]('ipfs:repo:migrator:migration-8'); | ||
function unwrap(blockstore) { | ||
@@ -74,3 +72,3 @@ if (blockstore.child) { | ||
const unwrapped = unwrap(blockstore); | ||
const blockCount = await length__default['default'](unwrapped.queryKeys({ | ||
const blockCount = await length__default["default"](unwrapped.queryKeys({ | ||
filters: [key => { | ||
@@ -77,0 +75,0 @@ const newKey = keyFunction(key); |
@@ -26,5 +26,3 @@ 'use strict'; | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
get: function () { return e[k]; } | ||
}); | ||
@@ -34,3 +32,3 @@ } | ||
} | ||
n['default'] = e; | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
@@ -53,3 +51,3 @@ } | ||
let counter = 0; | ||
const pinCount = await length__default['default'](pinSet.loadSet(blockstore, pinRoot, utils.PinTypes.recursive)) + await length__default['default'](pinSet.loadSet(blockstore, pinRoot, utils.PinTypes.direct)); | ||
const pinCount = await length__default["default"](pinSet.loadSet(blockstore, pinRoot, utils.PinTypes.recursive)) + await length__default["default"](pinSet.loadSet(blockstore, pinRoot, utils.PinTypes.direct)); | ||
for await (const cid of pinSet.loadSet(blockstore, pinRoot, utils.PinTypes.recursive)) { | ||
@@ -86,3 +84,3 @@ counter++; | ||
let counter = 0; | ||
const pinCount = await length__default['default'](pinstore.queryKeys({})); | ||
const pinCount = await length__default["default"](pinstore.queryKeys({})); | ||
for await (const {key, value} of pinstore.query({})) { | ||
@@ -89,0 +87,0 @@ counter++; |
@@ -28,5 +28,3 @@ 'use strict'; | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
get: function () { return e[k]; } | ||
}); | ||
@@ -36,3 +34,3 @@ } | ||
} | ||
n['default'] = e; | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
@@ -51,4 +49,4 @@ } | ||
} | ||
const hdrLength = varint__default['default'].decode(rootData); | ||
const vBytes = varint__default['default'].decode.bytes; | ||
const hdrLength = varint__default["default"].decode(rootData); | ||
const vBytes = varint__default["default"].decode.bytes; | ||
if (vBytes <= 0) { | ||
@@ -87,3 +85,3 @@ throw new Error('Invalid Set header length'); | ||
], buffer.byteLength + encodedKey.byteLength); | ||
return fnv1a__default['default'](toString.toString(data)); | ||
return fnv1a__default["default"](toString.toString(data)); | ||
} | ||
@@ -124,3 +122,3 @@ async function* walkItems(blockstore, node) { | ||
}).finish(); | ||
const header = varint__default['default'].encode(pbHeader.length); | ||
const header = varint__default["default"].encode(pbHeader.length); | ||
const headerBuf = concat.concat([ | ||
@@ -127,0 +125,0 @@ header, |
@@ -11,4 +11,4 @@ 'use strict'; | ||
const $Reader = $protobuf__default['default'].Reader, $Writer = $protobuf__default['default'].Writer, $util = $protobuf__default['default'].util; | ||
const $root = $protobuf__default['default'].roots['default'] || ($protobuf__default['default'].roots['default'] = {}); | ||
const $Reader = $protobuf__default["default"].Reader, $Writer = $protobuf__default["default"].Writer, $util = $protobuf__default["default"].util; | ||
const $root = $protobuf__default["default"].roots['default'] || ($protobuf__default["default"].roots['default'] = {}); | ||
const ipfs = $root.ipfs = (() => { | ||
@@ -98,3 +98,3 @@ const ipfs = {}; | ||
Set.prototype.toJSON = function toJSON() { | ||
return this.constructor.toObject(this, $protobuf__default['default'].util.toJSONOptions); | ||
return this.constructor.toObject(this, $protobuf__default["default"].util.toJSONOptions); | ||
}; | ||
@@ -108,3 +108,3 @@ return Set; | ||
exports['default'] = $root; | ||
exports["default"] = $root; | ||
exports.ipfs = ipfs; |
@@ -15,3 +15,3 @@ 'use strict'; | ||
const log = debug__default['default']('ipfs:repo:migrator'); | ||
const log = debug__default["default"]('ipfs:repo:migrator'); | ||
function getLatestMigrationVersion(migrations) { | ||
@@ -18,0 +18,0 @@ migrations = migrations || index; |
@@ -13,3 +13,3 @@ 'use strict'; | ||
const log = debug__default['default']('ipfs:repo:migrator:repo:init'); | ||
const log = debug__default["default"]('ipfs:repo:migrator:repo:init'); | ||
async function isRepoInitialized(backends) { | ||
@@ -16,0 +16,0 @@ if (!backends) { |
{ | ||
"name": "ipfs-repo-migrations", | ||
"version": "11.0.1", | ||
"version": "11.0.2", | ||
"description": "Migration framework for versioning of JS IPFS Repo", | ||
@@ -71,3 +71,3 @@ "keywords": [ | ||
"@types/varint": "^6.0.0", | ||
"aegir": "^35.0.1", | ||
"aegir": "^36.0.1", | ||
"assert": "^2.0.0", | ||
@@ -89,3 +89,3 @@ "aws-sdk": "^2.884.0", | ||
}, | ||
"gitHead": "e324b28a7c90e8a37ec89c68764cac7918a3ca55", | ||
"gitHead": "f36c922a2cd3a308a2d1fb7f397243488730bdf5", | ||
"exports": { | ||
@@ -92,0 +92,0 @@ ".": { |
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
0
0
196136
2774