@ganache/options
Advanced tools
Comparing version 0.1.1-beta.1 to 0.1.1-beta.2
"use strict"; | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to set private field on non-instance"); | ||
} | ||
privateMap.set(receiver, value); | ||
return value; | ||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
if (kind === "m") throw new TypeError("Private method is not writable"); | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); | ||
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; | ||
}; | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to get private field on non-instance"); | ||
} | ||
return privateMap.get(receiver); | ||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); | ||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); | ||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); | ||
}; | ||
var _defaults, _namespaces; | ||
var _OptionsConfig_defaults, _OptionsConfig_namespaces; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -36,3 +34,3 @@ exports.OptionsConfig = void 0; | ||
const keys = Object.keys(def); | ||
if (utils_1.hasOwn(options, namespace)) { | ||
if ((0, utils_1.hasOwn)(options, namespace)) { | ||
const namespaceOptions = options[namespace]; | ||
@@ -62,3 +60,3 @@ for (let i = 0, l = keys.length; i < l; i++) { | ||
} | ||
else if (utils_1.hasOwn(propDefinition, "default")) { | ||
else if ((0, utils_1.hasOwn)(propDefinition, "default")) { | ||
config[key] = propDefinition.default(config, flavor); | ||
@@ -83,3 +81,3 @@ } | ||
} | ||
else if (utils_1.hasOwn(propDefinition, "default")) { | ||
else if ((0, utils_1.hasOwn)(propDefinition, "default")) { | ||
config[key] = propDefinition.default(config, flavor); | ||
@@ -92,11 +90,11 @@ } | ||
constructor(defaults) { | ||
_defaults.set(this, void 0); | ||
_namespaces.set(this, void 0); | ||
__classPrivateFieldSet(this, _defaults, defaults); | ||
__classPrivateFieldSet(this, _namespaces, Object.keys(defaults)); | ||
_OptionsConfig_defaults.set(this, void 0); | ||
_OptionsConfig_namespaces.set(this, void 0); | ||
__classPrivateFieldSet(this, _OptionsConfig_defaults, defaults, "f"); | ||
__classPrivateFieldSet(this, _OptionsConfig_namespaces, Object.keys(defaults), "f"); | ||
} | ||
normalize(options) { | ||
const defaults = __classPrivateFieldGet(this, _defaults); | ||
const defaults = __classPrivateFieldGet(this, _OptionsConfig_defaults, "f"); | ||
const out = {}; | ||
__classPrivateFieldGet(this, _namespaces).forEach(namespace => { | ||
__classPrivateFieldGet(this, _OptionsConfig_namespaces, "f").forEach(namespace => { | ||
fill(defaults, options, out, namespace); | ||
@@ -108,3 +106,3 @@ }); | ||
exports.OptionsConfig = OptionsConfig; | ||
_defaults = new WeakMap(), _namespaces = new WeakMap(); | ||
_OptionsConfig_defaults = new WeakMap(), _OptionsConfig_namespaces = new WeakMap(); | ||
//# sourceMappingURL=create.js.map |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "0.1.1-beta.1", | ||
"version": "0.1.1-beta.2", | ||
"description": "Ganache's server/provider options TypeScript types", | ||
@@ -28,3 +28,3 @@ "author": "David Murdoch <david@trufflesuite.com> (https://davidmurdoch.com)", | ||
"scripts": { | ||
"tsc": "ttsc --build", | ||
"tsc": "tsc --build", | ||
"test": "echo 'no tests'" | ||
@@ -50,3 +50,3 @@ }, | ||
"dependencies": { | ||
"@ganache/utils": "0.1.1-beta.1", | ||
"@ganache/utils": "0.1.1-beta.2", | ||
"bip39": "3.0.4", | ||
@@ -59,7 +59,6 @@ "seedrandom": "3.0.5" | ||
"mocha": "9.1.3", | ||
"ts-node": "9.1.1", | ||
"ttypescript": "1.5.12", | ||
"typescript": "4.1.3" | ||
"ts-node": "10.4.0", | ||
"typescript": "4.5.2" | ||
}, | ||
"gitHead": "fd31f6b70e9e5c9acfa2d232d4b34ccbbab2342d" | ||
"gitHead": "ba61f67d4a3f7772e00e66c00b853206dc9e1c9e" | ||
} |
Sorry, the diff of this file is not supported yet
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
5
58350
287
+ Added@ganache/utils@0.1.1-beta.2(transitive)
+ Addedemittery@0.10.0(transitive)
- Removed@ganache/utils@0.1.1-beta.1(transitive)
- Removedemittery@0.7.2(transitive)
Updated@ganache/utils@0.1.1-beta.2