@liquality/utils
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -109,3 +109,3 @@ module.exports = | ||
eval("module.exports = {\"name\":\"@liquality/utils\",\"umdName\":\"Utils\",\"version\":\"0.2.3\",\"description\":\"\",\"module\":\"lib/index.js\",\"main\":\"dist/index.cjs.js\",\"files\":[\"dist\",\"lib\"],\"scripts\":{\"build:node\":\"webpack --config ../../webpack/webpack.node.config.js\",\"build:browser\":\"webpack --config ../../webpack/webpack.browser.config.js\",\"build\":\"webpack --config ../../webpack/webpack.config.js\"},\"author\":\"Liquality <info@liquality.io>\",\"license\":\"MIT\",\"dependencies\":{\"@babel/runtime\":\"^7.4.3\"},\"engines\":{\"node\":\"~8.12.0\"},\"homepage\":\"https://github.com/liquality/chainabstractionlayer#readme\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/liquality/chainabstractionlayer.git\"},\"bugs\":{\"url\":\"https://github.com/liquality/chainabstractionlayer/issues\"},\"publishConfig\":{\"access\":\"public\"},\"gitHead\":\"23bd372c089ee6a5e7b0cd10672ba1b5ed03e4ba\"};\n\n//# sourceURL=webpack:///./package.json?"); | ||
eval("module.exports = {\"name\":\"@liquality/utils\",\"umdName\":\"Utils\",\"version\":\"0.2.4\",\"description\":\"\",\"module\":\"lib/index.js\",\"main\":\"dist/index.cjs.js\",\"files\":[\"dist\",\"lib\"],\"scripts\":{\"build:node\":\"webpack --config ../../webpack/webpack.node.config.js\",\"build:browser\":\"webpack --config ../../webpack/webpack.browser.config.js\",\"build\":\"webpack --config ../../webpack/webpack.config.js\"},\"author\":\"Liquality <info@liquality.io>\",\"license\":\"MIT\",\"dependencies\":{\"@babel/runtime\":\"^7.4.3\"},\"engines\":{\"node\":\"~8.12.0\"},\"homepage\":\"https://github.com/liquality/chainabstractionlayer#readme\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/liquality/chainabstractionlayer.git\"},\"bugs\":{\"url\":\"https://github.com/liquality/chainabstractionlayer/issues\"},\"publishConfig\":{\"access\":\"public\"},\"gitHead\":\"22fc0167430b9d8e6e5130254f03ac24d28104f5\"};\n\n//# sourceURL=webpack:///./package.json?"); | ||
@@ -112,0 +112,0 @@ /***/ }) |
@@ -107,28 +107,6 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
"use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Address\", function() { return Address; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addressToString\", function() { return addressToString; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sleep\", function() { return sleep; });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../package.json */ \"./package.json\");\nvar _package_json__WEBPACK_IMPORTED_MODULE_2___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../package.json */ \"./package.json\", 1);\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return _package_json__WEBPACK_IMPORTED_MODULE_2__[\"version\"]; });\n\n\n\n\n\nfunction sleep(ms) {\n return new Promise(function (resolve) {\n return setTimeout(resolve, ms);\n });\n}\n\nvar Address =\n/*#__PURE__*/\nfunction () {\n function Address(address, derivationPath, publicKey, index) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Address);\n\n if (address instanceof Address || typeof address !== 'string') {\n this._address = address.address;\n this._derivationPath = address.derivationPath;\n this._publicKey = address.publicKey;\n this._index = address.index;\n } else {\n this._address = address;\n this._derivationPath = derivationPath;\n this._publicKey = publicKey;\n this._index = index;\n }\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Address, [{\n key: \"toLocaleString\",\n value: function toLocaleString() {\n return this._address;\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return this._address;\n }\n }, {\n key: \"valueOf\",\n value: function valueOf() {\n return this._address;\n }\n }, {\n key: \"equals\",\n value: function equals(addr) {\n return this._address === addressToString(addr);\n }\n }, {\n key: \"toObject\",\n value: function toObject() {\n var obj = {\n address: this._address\n };\n\n if (this._derivationPath) {\n obj.derivationPath = this._derivationPath;\n }\n\n if (this._publicKey) {\n obj.publicKey = this._publicKey;\n }\n\n if (this._index !== undefined && this._index !== null) {\n obj.index = this._index;\n }\n\n return obj;\n }\n }, {\n key: \"address\",\n get: function get() {\n return this._address;\n }\n }, {\n key: \"derivationPath\",\n get: function get() {\n return this._derivationPath;\n }\n }, {\n key: \"publicKey\",\n get: function get() {\n return this._publicKey;\n }\n }, {\n key: \"index\",\n get: function get() {\n return this._index;\n }\n }]);\n\n return Address;\n}();\n\nfunction addressToString(any) {\n if (typeof any === 'string') return any;\n return String(new Address(any));\n}\n\n\n\n//# sourceURL=webpack://Utils/./lib/index.js?"); | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Address\", function() { return Address; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addressToString\", function() { return addressToString; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sleep\", function() { return sleep; });\n/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../package.json */ \"./package.json\");\nvar _package_json__WEBPACK_IMPORTED_MODULE_0___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../package.json */ \"./package.json\", 1);\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return _package_json__WEBPACK_IMPORTED_MODULE_0__[\"version\"]; });\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\nfunction sleep(ms) {\n return new Promise(function (resolve) {\n return setTimeout(resolve, ms);\n });\n}\n\nvar Address =\n/*#__PURE__*/\nfunction () {\n function Address(address, derivationPath, publicKey, index) {\n _classCallCheck(this, Address);\n\n if (address instanceof Address || typeof address !== 'string') {\n this._address = address.address;\n this._derivationPath = address.derivationPath;\n this._publicKey = address.publicKey;\n this._index = address.index;\n } else {\n this._address = address;\n this._derivationPath = derivationPath;\n this._publicKey = publicKey;\n this._index = index;\n }\n }\n\n _createClass(Address, [{\n key: \"toLocaleString\",\n value: function toLocaleString() {\n return this._address;\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return this._address;\n }\n }, {\n key: \"valueOf\",\n value: function valueOf() {\n return this._address;\n }\n }, {\n key: \"equals\",\n value: function equals(addr) {\n return this._address === addressToString(addr);\n }\n }, {\n key: \"toObject\",\n value: function toObject() {\n var obj = {\n address: this._address\n };\n\n if (this._derivationPath) {\n obj.derivationPath = this._derivationPath;\n }\n\n if (this._publicKey) {\n obj.publicKey = this._publicKey;\n }\n\n if (this._index !== undefined && this._index !== null) {\n obj.index = this._index;\n }\n\n return obj;\n }\n }, {\n key: \"address\",\n get: function get() {\n return this._address;\n }\n }, {\n key: \"derivationPath\",\n get: function get() {\n return this._derivationPath;\n }\n }, {\n key: \"publicKey\",\n get: function get() {\n return this._publicKey;\n }\n }, {\n key: \"index\",\n get: function get() {\n return this._index;\n }\n }]);\n\n return Address;\n}();\n\nfunction addressToString(any) {\n if (typeof any === 'string') return any;\n return String(new Address(any));\n}\n\n\n\n//# sourceURL=webpack://Utils/./lib/index.js?"); | ||
/***/ }), | ||
/***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js": | ||
/*!***************************************************************!*\ | ||
!*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***! | ||
\***************************************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
eval("function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;\n\n//# sourceURL=webpack://Utils/./node_modules/@babel/runtime/helpers/classCallCheck.js?"); | ||
/***/ }), | ||
/***/ "./node_modules/@babel/runtime/helpers/createClass.js": | ||
/*!************************************************************!*\ | ||
!*** ./node_modules/@babel/runtime/helpers/createClass.js ***! | ||
\************************************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
eval("function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;\n\n//# sourceURL=webpack://Utils/./node_modules/@babel/runtime/helpers/createClass.js?"); | ||
/***/ }), | ||
/***/ "./package.json": | ||
@@ -141,3 +119,3 @@ /*!**********************!*\ | ||
eval("module.exports = {\"name\":\"@liquality/utils\",\"umdName\":\"Utils\",\"version\":\"0.2.3\",\"description\":\"\",\"module\":\"lib/index.js\",\"main\":\"dist/index.cjs.js\",\"files\":[\"dist\",\"lib\"],\"scripts\":{\"build:node\":\"webpack --config ../../webpack/webpack.node.config.js\",\"build:browser\":\"webpack --config ../../webpack/webpack.browser.config.js\",\"build\":\"webpack --config ../../webpack/webpack.config.js\"},\"author\":\"Liquality <info@liquality.io>\",\"license\":\"MIT\",\"dependencies\":{\"@babel/runtime\":\"^7.4.3\"},\"engines\":{\"node\":\"~8.12.0\"},\"homepage\":\"https://github.com/liquality/chainabstractionlayer#readme\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/liquality/chainabstractionlayer.git\"},\"bugs\":{\"url\":\"https://github.com/liquality/chainabstractionlayer/issues\"},\"publishConfig\":{\"access\":\"public\"},\"gitHead\":\"23bd372c089ee6a5e7b0cd10672ba1b5ed03e4ba\"};\n\n//# sourceURL=webpack://Utils/./package.json?"); | ||
eval("module.exports = {\"name\":\"@liquality/utils\",\"umdName\":\"Utils\",\"version\":\"0.2.4\",\"description\":\"\",\"module\":\"lib/index.js\",\"main\":\"dist/index.cjs.js\",\"files\":[\"dist\",\"lib\"],\"scripts\":{\"build:node\":\"webpack --config ../../webpack/webpack.node.config.js\",\"build:browser\":\"webpack --config ../../webpack/webpack.browser.config.js\",\"build\":\"webpack --config ../../webpack/webpack.config.js\"},\"author\":\"Liquality <info@liquality.io>\",\"license\":\"MIT\",\"dependencies\":{\"@babel/runtime\":\"^7.4.3\"},\"engines\":{\"node\":\"~8.12.0\"},\"homepage\":\"https://github.com/liquality/chainabstractionlayer#readme\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/liquality/chainabstractionlayer.git\"},\"bugs\":{\"url\":\"https://github.com/liquality/chainabstractionlayer/issues\"},\"publishConfig\":{\"access\":\"public\"},\"gitHead\":\"22fc0167430b9d8e6e5130254f03ac24d28104f5\"};\n\n//# sourceURL=webpack://Utils/./package.json?"); | ||
@@ -144,0 +122,0 @@ /***/ }) |
{ | ||
"name": "@liquality/utils", | ||
"umdName": "Utils", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "", | ||
@@ -36,3 +36,3 @@ "module": "lib/index.js", | ||
}, | ||
"gitHead": "23bd372c089ee6a5e7b0cd10672ba1b5ed03e4ba" | ||
"gitHead": "22fc0167430b9d8e6e5130254f03ac24d28104f5" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
37940
314