New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ipfs-repo-migrations

Package Overview
Dependencies
Maintainers
5
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-repo-migrations - npm Package Compare versions

Comparing version 11.0.1 to 11.0.2

10

cjs/migrations/migration-8/index.js

@@ -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++;

14

cjs/migrations/migration-9/pin-set.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc