Socket
Socket
Sign inDemoInstall

@pagedip/util-resolve

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pagedip/util-resolve - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-rc.0

162

index.js

@@ -13,158 +13,6 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var asyncGenerator = function () {
function AwaitValue(value) {
this.value = value;
}
function AsyncGenerator(gen) {
var front, back;
function send(key, arg) {
return new Promise(function (resolve$$1, reject) {
var request = {
key: key,
arg: arg,
resolve: resolve$$1,
reject: reject,
next: null
};
if (back) {
back = back.next = request;
} else {
front = back = request;
resume(key, arg);
}
});
}
function resume(key, arg) {
try {
var result = gen[key](arg);
var value = result.value;
if (value instanceof AwaitValue) {
Promise.resolve(value.value).then(function (arg) {
resume("next", arg);
}, function (arg) {
resume("throw", arg);
});
} else {
settle(result.done ? "return" : "normal", result.value);
}
} catch (err) {
settle("throw", err);
}
}
function settle(type, value) {
switch (type) {
case "return":
front.resolve({
value: value,
done: true
});
break;
case "throw":
front.reject(value);
break;
default:
front.resolve({
value: value,
done: false
});
break;
}
front = front.next;
if (front) {
resume(front.key, front.arg);
} else {
back = null;
}
}
this._invoke = send;
if (typeof gen.return !== "function") {
this.return = undefined;
}
}
if (typeof Symbol === "function" && Symbol.asyncIterator) {
AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
return this;
};
}
AsyncGenerator.prototype.next = function (arg) {
return this._invoke("next", arg);
};
AsyncGenerator.prototype.throw = function (arg) {
return this._invoke("throw", arg);
};
AsyncGenerator.prototype.return = function (arg) {
return this._invoke("return", arg);
};
return {
wrap: function (fn) {
return function () {
return new AsyncGenerator(fn.apply(this, arguments));
};
},
await: function (value) {
return new AwaitValue(value);
}
};
}();
var asyncToGenerator = function (fn) {
return function () {
var gen = fn.apply(this, arguments);
return new Promise(function (resolve$$1, reject) {
function step(key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve$$1(value);
} else {
return Promise.resolve(value).then(function (value) {
step("next", value);
}, function (err) {
step("throw", err);
});
}
}
return step("next");
});
};
};
var loadLerna = function () {
var _ref = asyncToGenerator(function* () {
var _ref = _asyncToGenerator(function* () {
if (lernapkgs != null) return lernapkgs;

@@ -198,3 +46,3 @@

var resolve$1 = function () {
var _ref2 = asyncToGenerator(function* (name, opts) {
var _ref2 = _asyncToGenerator(function* (name, opts) {
if (typeof name !== "string" || !name) return;

@@ -218,2 +66,4 @@

function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve$$1, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve$$1(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
var lerna = void 0;

@@ -226,3 +76,3 @@ var lernapkgs = void 0;

var index = (function () {
var _ref3 = asyncToGenerator(function* (name, opts) {
var _ref3 = _asyncToGenerator(function* (name, opts) {
if (typeof name !== "string" || !name) return;

@@ -229,0 +79,0 @@

10

package.json
{
"name": "@pagedip/util-resolve",
"version": "1.0.0",
"version": "1.0.1-rc.0",
"author": "Tyler Johnson <tyler@beneaththeink.com>",

@@ -19,3 +19,3 @@ "repository": {

"dependencies": {
"@pagedip/util-logger": "^1.0.0",
"@pagedip/util-logger": "^1.0.1-rc.0",
"find-up": "^2.1.0",

@@ -26,4 +26,4 @@ "global-modules": "^1.0.0",

"devDependencies": {
"npm-run-all": "^4.1.1",
"rollup": "^0.50.0",
"npm-run-all": "^4.1.2",
"rollup": "^0.53.3",
"shx": "^0.2.2"

@@ -34,3 +34,3 @@ },

],
"gitHead": "8aae2d936f98f6f3b228a7c1a97f36ef409ea957"
"gitHead": "67860f9c5f27665fa10de204a4ea7623ec5d32bd"
}
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