pnpm 6.27.2 → 6.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/.modules.yaml +3 -2
- package/dist/node_modules/.pnpm/lock.yaml +6 -6
- package/dist/node_modules/negotiator/index.js +4 -46
- package/dist/node_modules/negotiator/lib/language.js +3 -3
- package/dist/node_modules/negotiator/package.json +8 -8
- package/dist/node_modules/signal-exit/index.js +4 -2
- package/dist/node_modules/signal-exit/package.json +1 -1
- package/dist/pnpm.cjs +20737 -20268
- package/dist/pnpx.cjs +2639 -8
- package/package.json +18 -18
|
@@ -4,13 +4,14 @@ included:
|
|
|
4
4
|
dependencies: true
|
|
5
5
|
devDependencies: true
|
|
6
6
|
optionalDependencies: true
|
|
7
|
+
injectedDeps: {}
|
|
7
8
|
layoutVersion: 5
|
|
8
9
|
nodeLinker: hoisted
|
|
9
|
-
packageManager: pnpm@6.
|
|
10
|
+
packageManager: pnpm@6.29.1
|
|
10
11
|
pendingBuilds:
|
|
11
12
|
- /node-gyp/8.4.1
|
|
12
13
|
- /encoding/0.1.13
|
|
13
|
-
prunedAt:
|
|
14
|
+
prunedAt: Sat, 05 Feb 2022 12:06:54 GMT
|
|
14
15
|
publicHoistPattern:
|
|
15
16
|
- '*types*'
|
|
16
17
|
- '*eslint*'
|
|
@@ -229,7 +229,7 @@ packages:
|
|
|
229
229
|
color-support: 1.1.3
|
|
230
230
|
console-control-strings: 1.1.0
|
|
231
231
|
has-unicode: 2.0.1
|
|
232
|
-
signal-exit: 3.0.
|
|
232
|
+
signal-exit: 3.0.7
|
|
233
233
|
string-width: 4.2.3
|
|
234
234
|
strip-ansi: 6.0.1
|
|
235
235
|
wide-align: 1.1.5
|
|
@@ -376,7 +376,7 @@ packages:
|
|
|
376
376
|
minipass-fetch: 1.4.1
|
|
377
377
|
minipass-flush: 1.0.5
|
|
378
378
|
minipass-pipeline: 1.2.4
|
|
379
|
-
negotiator: 0.6.
|
|
379
|
+
negotiator: 0.6.3
|
|
380
380
|
promise-retry: 2.0.1
|
|
381
381
|
socks-proxy-agent: 6.1.1
|
|
382
382
|
ssri: 8.0.1
|
|
@@ -470,8 +470,8 @@ packages:
|
|
|
470
470
|
dev: false
|
|
471
471
|
optional: true
|
|
472
472
|
|
|
473
|
-
/negotiator/0.6.
|
|
474
|
-
resolution: {integrity: sha512
|
|
473
|
+
/negotiator/0.6.3:
|
|
474
|
+
resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}
|
|
475
475
|
engines: {node: '>= 0.6'}
|
|
476
476
|
dev: false
|
|
477
477
|
optional: true
|
|
@@ -600,8 +600,8 @@ packages:
|
|
|
600
600
|
dev: false
|
|
601
601
|
optional: true
|
|
602
602
|
|
|
603
|
-
/signal-exit/3.0.
|
|
604
|
-
resolution: {integrity: sha512-
|
|
603
|
+
/signal-exit/3.0.7:
|
|
604
|
+
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
|
|
605
605
|
dev: false
|
|
606
606
|
optional: true
|
|
607
607
|
|
|
@@ -8,12 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var modules = Object.create(null);
|
|
11
|
+
var preferredCharsets = require('./lib/charset')
|
|
12
|
+
var preferredEncodings = require('./lib/encoding')
|
|
13
|
+
var preferredLanguages = require('./lib/language')
|
|
14
|
+
var preferredMediaTypes = require('./lib/mediaType')
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
* Module exports.
|
|
@@ -43,7 +41,6 @@ Negotiator.prototype.charset = function charset(available) {
|
|
|
43
41
|
};
|
|
44
42
|
|
|
45
43
|
Negotiator.prototype.charsets = function charsets(available) {
|
|
46
|
-
var preferredCharsets = loadModule('charset').preferredCharsets;
|
|
47
44
|
return preferredCharsets(this.request.headers['accept-charset'], available);
|
|
48
45
|
};
|
|
49
46
|
|
|
@@ -53,7 +50,6 @@ Negotiator.prototype.encoding = function encoding(available) {
|
|
|
53
50
|
};
|
|
54
51
|
|
|
55
52
|
Negotiator.prototype.encodings = function encodings(available) {
|
|
56
|
-
var preferredEncodings = loadModule('encoding').preferredEncodings;
|
|
57
53
|
return preferredEncodings(this.request.headers['accept-encoding'], available);
|
|
58
54
|
};
|
|
59
55
|
|
|
@@ -63,7 +59,6 @@ Negotiator.prototype.language = function language(available) {
|
|
|
63
59
|
};
|
|
64
60
|
|
|
65
61
|
Negotiator.prototype.languages = function languages(available) {
|
|
66
|
-
var preferredLanguages = loadModule('language').preferredLanguages;
|
|
67
62
|
return preferredLanguages(this.request.headers['accept-language'], available);
|
|
68
63
|
};
|
|
69
64
|
|
|
@@ -73,7 +68,6 @@ Negotiator.prototype.mediaType = function mediaType(available) {
|
|
|
73
68
|
};
|
|
74
69
|
|
|
75
70
|
Negotiator.prototype.mediaTypes = function mediaTypes(available) {
|
|
76
|
-
var preferredMediaTypes = loadModule('mediaType').preferredMediaTypes;
|
|
77
71
|
return preferredMediaTypes(this.request.headers.accept, available);
|
|
78
72
|
};
|
|
79
73
|
|
|
@@ -86,39 +80,3 @@ Negotiator.prototype.preferredLanguage = Negotiator.prototype.language;
|
|
|
86
80
|
Negotiator.prototype.preferredLanguages = Negotiator.prototype.languages;
|
|
87
81
|
Negotiator.prototype.preferredMediaType = Negotiator.prototype.mediaType;
|
|
88
82
|
Negotiator.prototype.preferredMediaTypes = Negotiator.prototype.mediaTypes;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Load the given module.
|
|
92
|
-
* @private
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
|
-
function loadModule(moduleName) {
|
|
96
|
-
var module = modules[moduleName];
|
|
97
|
-
|
|
98
|
-
if (module !== undefined) {
|
|
99
|
-
return module;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// This uses a switch for static require analysis
|
|
103
|
-
switch (moduleName) {
|
|
104
|
-
case 'charset':
|
|
105
|
-
module = require('./lib/charset');
|
|
106
|
-
break;
|
|
107
|
-
case 'encoding':
|
|
108
|
-
module = require('./lib/encoding');
|
|
109
|
-
break;
|
|
110
|
-
case 'language':
|
|
111
|
-
module = require('./lib/language');
|
|
112
|
-
break;
|
|
113
|
-
case 'mediaType':
|
|
114
|
-
module = require('./lib/mediaType');
|
|
115
|
-
break;
|
|
116
|
-
default:
|
|
117
|
-
throw new Error('Cannot find module \'' + moduleName + '\'');
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Store to prevent invoking require()
|
|
121
|
-
modules[moduleName] = module;
|
|
122
|
-
|
|
123
|
-
return module;
|
|
124
|
-
}
|
|
@@ -54,9 +54,9 @@ function parseLanguage(str, i) {
|
|
|
54
54
|
var match = simpleLanguageRegExp.exec(str);
|
|
55
55
|
if (!match) return null;
|
|
56
56
|
|
|
57
|
-
var prefix = match[1]
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
var prefix = match[1]
|
|
58
|
+
var suffix = match[2]
|
|
59
|
+
var full = prefix
|
|
60
60
|
|
|
61
61
|
if (suffix) full += "-" + suffix;
|
|
62
62
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "negotiator",
|
|
3
3
|
"description": "HTTP content negotiation",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.3",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
7
7
|
"Federico Romero <federico.romero@outboxlabs.com>",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
],
|
|
19
19
|
"repository": "jshttp/negotiator",
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"eslint": "
|
|
22
|
-
"eslint-plugin-markdown": "
|
|
23
|
-
"mocha": "
|
|
24
|
-
"nyc": "
|
|
21
|
+
"eslint": "7.32.0",
|
|
22
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
23
|
+
"mocha": "9.1.3",
|
|
24
|
+
"nyc": "15.1.0"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"lib/",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"node": ">= 0.6"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
-
"lint": "eslint
|
|
37
|
+
"lint": "eslint .",
|
|
38
38
|
"test": "mocha --reporter spec --check-leaks --bail test/",
|
|
39
|
-
"test-
|
|
40
|
-
"test-
|
|
39
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
40
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -19,7 +19,9 @@ const processOk = function (process) {
|
|
|
19
19
|
// some kind of non-node environment, just no-op
|
|
20
20
|
/* istanbul ignore if */
|
|
21
21
|
if (!processOk(process)) {
|
|
22
|
-
module.exports = function () {
|
|
22
|
+
module.exports = function () {
|
|
23
|
+
return function () {}
|
|
24
|
+
}
|
|
23
25
|
} else {
|
|
24
26
|
var assert = require('assert')
|
|
25
27
|
var signals = require('./signals.js')
|
|
@@ -52,7 +54,7 @@ if (!processOk(process)) {
|
|
|
52
54
|
module.exports = function (cb, opts) {
|
|
53
55
|
/* istanbul ignore if */
|
|
54
56
|
if (!processOk(global.process)) {
|
|
55
|
-
return
|
|
57
|
+
return function () {}
|
|
56
58
|
}
|
|
57
59
|
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
|
|
58
60
|
|