diff options
Diffstat (limited to 'deps/npm/node_modules/protoduck')
-rw-r--r-- | deps/npm/node_modules/protoduck/CHANGELOG.md | 11 | ||||
-rw-r--r-- | deps/npm/node_modules/protoduck/index.js | 26 | ||||
-rw-r--r-- | deps/npm/node_modules/protoduck/package.json | 33 |
3 files changed, 40 insertions, 30 deletions
diff --git a/deps/npm/node_modules/protoduck/CHANGELOG.md b/deps/npm/node_modules/protoduck/CHANGELOG.md index dd7669aa13..f4902ab2d0 100644 --- a/deps/npm/node_modules/protoduck/CHANGELOG.md +++ b/deps/npm/node_modules/protoduck/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +<a name="5.0.1"></a> +## [5.0.1](https://github.com/zkat/protoduck/compare/v5.0.0...v5.0.1) (2018-10-26) + + +### Bug Fixes + +* **security:** npm audit fix ([55a2007](https://github.com/zkat/protoduck/commit/55a2007)) +* **standard:** standard --fix ([2dedbb8](https://github.com/zkat/protoduck/commit/2dedbb8)) + + + <a name="5.0.0"></a> # [5.0.0](https://github.com/zkat/protoduck/compare/v4.0.0...v5.0.0) (2017-12-12) diff --git a/deps/npm/node_modules/protoduck/index.js b/deps/npm/node_modules/protoduck/index.js index 3596bb3299..b6a83e1f79 100644 --- a/deps/npm/node_modules/protoduck/index.js +++ b/deps/npm/node_modules/protoduck/index.js @@ -52,8 +52,8 @@ class Duck extends Function { gf = arg[fns[i]] if (!gf || (gf.hasMethod - ? !gf.hasMethod.apply(gf, args) - : typeof gf === 'function')) { + ? !gf.hasMethod.apply(gf, args) + : typeof gf === 'function')) { return false } } @@ -81,7 +81,7 @@ Duck.prototype.isProtocol = true const Protoduck = module.exports = define(['duck'], { createGenfun: ['duck', _metaCreateGenfun], addMethod: ['duck', _metaAddMethod] -}, {name: 'Protoduck'}) +}, { name: 'Protoduck' }) const noImplFound = module.exports.noImplFound = genfun.noApplicableMethod @@ -168,22 +168,22 @@ function defineMethod (duck, name, target, types, impls) { if (!Object.prototype.hasOwnProperty.call(target, name)) { // Make a genfun if there's nothing there const gf = useMetaobject - ? duck._metaobject.createGenfun(duck, target, name, null) - : _metaCreateGenfun(duck, target, name, null) + ? duck._metaobject.createGenfun(duck, target, name, null) + : _metaCreateGenfun(duck, target, name, null) target[name] = gf } else if (typeof target[name] === 'function' && !target[name].isGenfun) { // Turn non-gf functions into genfuns const gf = useMetaobject - ? duck._metaobject.createGenfun(duck, target, name, target[name]) - : _metaCreateGenfun(duck, target, name, target[name]) + ? duck._metaobject.createGenfun(duck, target, name, target[name]) + : _metaCreateGenfun(duck, target, name, target[name]) target[name] = gf } const fn = impls[name] || duck._defaultImpls[name] if (fn) { // checkImpls made sure this is safe useMetaobject - ? duck._metaobject.addMethod(duck, target, name, methodTypes, fn) - : _metaAddMethod(duck, target, name, methodTypes, fn) + ? duck._metaobject.addMethod(duck, target, name, methodTypes, fn) + : _metaAddMethod(duck, target, name, methodTypes, fn) } } @@ -256,8 +256,8 @@ function installMethodErrorMessage (proto, gf, target, name) { proto.name ? `${proto.name}#` : '' }${name}(${[].map.call(args, typeName).join(', ')}). You must implement ${ proto.name - ? formatMethod(proto, name, true) - : `the protocol ${formatMethod(proto, name)} belongs to` + ? formatMethod(proto, name, true) + : `the protocol ${formatMethod(proto, name)} belongs to` } in order to call ${typeName(thisArg)}#${name}(${ [].map.call(args, typeName).join(', ') }).` @@ -330,8 +330,8 @@ class Constraint { const thisType = ( this.thisIdx === 'this' || this.thisIdx == null ) - ? target - : types[this.thisIdx] + ? target + : types[this.thisIdx] const parentTypes = this.indices.map(idx => { if (idx === 'this') { return target diff --git a/deps/npm/node_modules/protoduck/package.json b/deps/npm/node_modules/protoduck/package.json index 2211df2086..3ee47ac6ad 100644 --- a/deps/npm/node_modules/protoduck/package.json +++ b/deps/npm/node_modules/protoduck/package.json @@ -1,28 +1,27 @@ { - "_from": "protoduck@^5.0.0", - "_id": "protoduck@5.0.0", + "_from": "protoduck@^5.0.1", + "_id": "protoduck@5.0.1", "_inBundle": false, - "_integrity": "sha512-agsGWD8/RZrS4ga6v82Fxb0RHIS2RZnbsSue6A9/MBRhB/jcqOANAMNrqM9900b8duj+Gx+T/JMy5IowDoO/hQ==", + "_integrity": "sha512-WxoCeDCoCBY55BMvj4cAEjdVUFGRWed9ZxPlqTKYyw1nDDTQ4pqmnIMAGfJlg7Dx35uB/M+PHJPTmGOvaCaPTg==", "_location": "/protoduck", "_phantomChildren": {}, "_requested": { "type": "range", "registry": true, - "raw": "protoduck@^5.0.0", + "raw": "protoduck@^5.0.1", "name": "protoduck", "escapedName": "protoduck", - "rawSpec": "^5.0.0", + "rawSpec": "^5.0.1", "saveSpec": null, - "fetchSpec": "^5.0.0" + "fetchSpec": "^5.0.1" }, "_requiredBy": [ - "/libcipm", "/pacote" ], - "_resolved": "https://registry.npmjs.org/protoduck/-/protoduck-5.0.0.tgz", - "_shasum": "752145e6be0ad834cb25716f670a713c860dce70", - "_spec": "protoduck@^5.0.0", - "_where": "/Users/rebecca/code/npm/node_modules/libcipm", + "_resolved": "https://registry.npmjs.org/protoduck/-/protoduck-5.0.1.tgz", + "_shasum": "03c3659ca18007b69a50fd82a7ebcc516261151f", + "_spec": "protoduck@^5.0.1", + "_where": "/Users/zkat/Documents/code/work/npm/node_modules/pacote", "author": { "name": "Kat Marchán", "email": "kzm@sykosomatic.org" @@ -32,16 +31,16 @@ }, "bundleDependencies": false, "dependencies": { - "genfun": "^4.0.1" + "genfun": "^5.0.0" }, "deprecated": false, "description": "Fancy duck typing for the most serious of ducks.", "devDependencies": { - "mocha": "^3.2.0", - "nyc": "^10.2.0", - "standard": "^10.0.2", + "mocha": "^5.2.0", + "nyc": "^13.1.0", + "standard": "^12.0.1", "standard-version": "^4.0.0", - "tap": "^10.3.2", + "tap": "^12.0.1", "weallbehave": "^1.0.3", "weallcontribute": "^1.0.8" }, @@ -85,5 +84,5 @@ "update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'", "update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'" }, - "version": "5.0.0" + "version": "5.0.1" } |