@bitgo/statics
Advanced tools
Comparing version 2.6.0 to 2.7.0-rc.0
@@ -24,2 +24,3 @@ "use strict"; | ||
if (this._map.has(key)) { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
return this._map.get(key); | ||
@@ -58,2 +59,2 @@ } | ||
exports.CoinMap = CoinMap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21hcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLG1DQUE2RTtBQUU3RTtJQUdFO1FBRmlCLFNBQUksR0FBRyxJQUFJLEdBQUcsRUFBOEIsQ0FBQztJQUV2QyxDQUFDO0lBRWpCLGlCQUFTLEdBQWhCLFVBQWlCLEtBQTJCO1FBQzFDLE9BQU8sS0FBSyxDQUFDLE1BQU0sQ0FBQyxVQUFDLE9BQU8sRUFBRSxJQUFJO1lBQ2hDLElBQUksT0FBTyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFO2dCQUMvQixNQUFNLElBQUkscUNBQTRCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO2FBQ25EO1lBQ0QsT0FBTyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztZQUNsQyxPQUFPLE9BQU8sQ0FBQztRQUNqQixDQUFDLEVBQUUsSUFBSSxPQUFPLEVBQUUsQ0FBQyxDQUFDO0lBQ3BCLENBQUM7SUFFRDs7OztPQUlHO0lBQ0kscUJBQUcsR0FBVixVQUFXLEdBQVc7UUFDcEIsSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsRUFBRTtZQUN0QixPQUFPLElBQUksQ0FBQyxJQUFJLENBQU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lLCBrZXkpKTtcbiAgICB9KTtcbiAgICByZXR1cm4gbWFwUmVzdWx0O1xuICB9XG5cbiAgcHVibGljIHJlZHVjZTxUPihyZWR1Y2VyOiAoYWNjOiBULCBjb2luOiBSZWFkb25seTxCYXNlQ29pbj4sIGNvaW5OYW1lOiBzdHJpbmcpID0+IFQsIGluaXRpYWxWYWx1ZTogVCk6IFQge1xuICAgIGxldCBhY2MgPSBpbml0aWFsVmFsdWU7XG4gICAgdGhpcy5fbWFwLmZvckVhY2goKHZhbHVlLCBrZXkpID0+IHtcbiAgICAgIGFjYyA9IHJlZHVjZXIoYWNjLCB2YWx1ZSwga2V5KTtcbiAgICB9KTtcbiAgICByZXR1cm4gYWNjO1xuICB9XG5cbiAgcHVibGljIGZpbHRlcihwcmVkaWNhdGU6IChjb2luOiBSZWFkb25seTxCYXNlQ29pbj4sIGNvaW5OYW1lOiBzdHJpbmcpID0+IGJvb2xlYW4pOiBDb2luTWFwIHtcbiAgICBjb25zdCBmaWx0ZXJSZXN1bHQ6IFJlYWRvbmx5PEJhc2VDb2luPltdID0gW107XG4gICAgdGhpcy5fbWFwLmZvckVhY2goKHZhbHVlLCBrZXkpID0+IHtcbiAgICAgIGlmIChwcmVkaWNhdGUodmFsdWUsIGtleSkpIHtcbiAgICAgICAgZmlsdGVyUmVzdWx0LnB1c2godmFsdWUpO1xuICAgICAgfVxuICAgIH0pO1xuICAgIHJldHVybiBDb2luTWFwLmZyb21Db2lucyhmaWx0ZXJSZXN1bHQpO1xuICB9XG5cbiAgcHVibGljIGZvckVhY2goY2FsbGJhY2s6IChjb2luOiBSZWFkb25seTxCYXNlQ29pbj4sIGNvaW5OYW1lOiBzdHJpbmcpID0+IHZvaWQpOiB2b2lkIHtcbiAgICB0aGlzLl9tYXAuZm9yRWFjaChjYWxsYmFjayk7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "@bitgo/statics", | ||
"version": "2.6.0", | ||
"version": "2.7.0-rc.0", | ||
"description": "dependency-free static configuration for the bitgo platform", | ||
@@ -8,7 +8,9 @@ "main": "./dist/src/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"test": "yarn unit-test", | ||
"unit-test": "nyc -- mocha --opts test/mocha.opts \"test/unit/*.ts\"", | ||
"build": "tsc", | ||
"fmt": "prettier --write 'src/**/*.ts'", | ||
"check-fmt": "prettier --check 'src/**/*.ts'", | ||
"clean": "rm -r ./dist" | ||
"clean": "rm -r ./dist", | ||
"precommit": "lint-staged" | ||
}, | ||
@@ -24,3 +26,7 @@ "author": "Tyler Levine <tyler@bitgo.com>", | ||
"lint-staged": "^8.1.5", | ||
"mocha": "^6.2.1", | ||
"mochawesome": "^3.1.2", | ||
"nyc": "^14.0.0", | ||
"prettier": "^1.16.4", | ||
"should": "^13.2.3", | ||
"typescript": "^3.4.0" | ||
@@ -42,3 +48,8 @@ }, | ||
}, | ||
"gitHead": "0d07d5866da374479c02aec134a4e315ab4947b6" | ||
"nyc": { | ||
"extension": [ | ||
".ts" | ||
] | ||
}, | ||
"gitHead": "ef986a714c21aa96adbd4da461e0248ad25b3991" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
319212
34
2570
8