Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2019-07-02 03:18:54 +0300
committerisaacs <i@izs.me>2019-07-03 20:08:32 +0300
commitbddd60e302283a4a70d35f8f742e42bd13f4dabf (patch)
tree9bca6d8d1af5b58d764ee72c7a32c8e4dae58272 /node_modules/inherits
parent74140042917ea241062a812ceb65c5423c2bafa9 (diff)
inherits@2.0.4
Diffstat (limited to 'node_modules/inherits')
-rw-r--r--node_modules/inherits/inherits.js2
-rw-r--r--node_modules/inherits/inherits_browser.js32
-rw-r--r--node_modules/inherits/package.json48
3 files changed, 49 insertions, 33 deletions
diff --git a/node_modules/inherits/inherits.js b/node_modules/inherits/inherits.js
index 3b94763a7..f71f2d932 100644
--- a/node_modules/inherits/inherits.js
+++ b/node_modules/inherits/inherits.js
@@ -1,7 +1,9 @@
try {
var util = require('util');
+ /* istanbul ignore next */
if (typeof util.inherits !== 'function') throw '';
module.exports = util.inherits;
} catch (e) {
+ /* istanbul ignore next */
module.exports = require('./inherits_browser.js');
}
diff --git a/node_modules/inherits/inherits_browser.js b/node_modules/inherits/inherits_browser.js
index c1e78a75e..86bbb3dc2 100644
--- a/node_modules/inherits/inherits_browser.js
+++ b/node_modules/inherits/inherits_browser.js
@@ -1,23 +1,27 @@
if (typeof Object.create === 'function') {
// implementation from standard node.js 'util' module
module.exports = function inherits(ctor, superCtor) {
- ctor.super_ = superCtor
- ctor.prototype = Object.create(superCtor.prototype, {
- constructor: {
- value: ctor,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
+ if (superCtor) {
+ ctor.super_ = superCtor
+ ctor.prototype = Object.create(superCtor.prototype, {
+ constructor: {
+ value: ctor,
+ enumerable: false,
+ writable: true,
+ configurable: true
+ }
+ })
+ }
};
} else {
// old school shim for old browsers
module.exports = function inherits(ctor, superCtor) {
- ctor.super_ = superCtor
- var TempCtor = function () {}
- TempCtor.prototype = superCtor.prototype
- ctor.prototype = new TempCtor()
- ctor.prototype.constructor = ctor
+ if (superCtor) {
+ ctor.super_ = superCtor
+ var TempCtor = function () {}
+ TempCtor.prototype = superCtor.prototype
+ ctor.prototype = new TempCtor()
+ ctor.prototype.constructor = ctor
+ }
}
}
diff --git a/node_modules/inherits/package.json b/node_modules/inherits/package.json
index 0ae0875ff..ab48b2a4b 100644
--- a/node_modules/inherits/package.json
+++ b/node_modules/inherits/package.json
@@ -1,52 +1,62 @@
{
- "_args": [
- [
- "inherits@2.0.3",
- "/Users/rebecca/code/npm"
- ]
- ],
- "_from": "inherits@2.0.3",
- "_id": "inherits@2.0.3",
+ "_from": "inherits@2.0.4",
+ "_id": "inherits@2.0.4",
"_inBundle": false,
- "_integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
+ "_integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"_location": "/inherits",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
- "raw": "inherits@2.0.3",
+ "raw": "inherits@2.0.4",
"name": "inherits",
"escapedName": "inherits",
- "rawSpec": "2.0.3",
+ "rawSpec": "2.0.4",
"saveSpec": null,
- "fetchSpec": "2.0.3"
+ "fetchSpec": "2.0.4"
},
"_requiredBy": [
+ "#USER",
"/",
+ "/are-we-there-yet/readable-stream",
"/block-stream",
+ "/cacache/glob",
"/concat-stream",
+ "/concat-stream/readable-stream",
"/duplexify",
+ "/duplexify/readable-stream",
"/flush-write-stream",
+ "/flush-write-stream/readable-stream",
"/from2",
+ "/from2/readable-stream",
+ "/fs-write-stream-atomic/readable-stream",
"/fstream",
"/glob",
"/node-gyp/tar",
"/parallel-transform",
+ "/parallel-transform/readable-stream",
"/pumpify",
"/readable-stream",
"/sorted-union-stream/from2",
- "/sorted-union-stream/readable-stream"
+ "/sorted-union-stream/readable-stream",
+ "/stream-iterate/readable-stream",
+ "/tap-mocha-reporter/readable-stream",
+ "/tar-stream",
+ "/through2/readable-stream"
],
- "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
- "_spec": "2.0.3",
- "_where": "/Users/rebecca/code/npm",
+ "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "_shasum": "0fa2c64f932917c3433a0ded55363aae37416b7c",
+ "_spec": "inherits@2.0.4",
+ "_where": "/Users/isaacs/dev/npm/cli",
"browser": "./inherits_browser.js",
"bugs": {
"url": "https://github.com/isaacs/inherits/issues"
},
+ "bundleDependencies": false,
+ "deprecated": false,
"description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
"devDependencies": {
- "tap": "^7.1.0"
+ "tap": "^14.2.4"
},
"files": [
"inherits.js",
@@ -71,7 +81,7 @@
"url": "git://github.com/isaacs/inherits.git"
},
"scripts": {
- "test": "node test"
+ "test": "tap"
},
- "version": "2.0.3"
+ "version": "2.0.4"
}