pnpm 6.30.0 → 6.30.1

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.
@@ -7,11 +7,11 @@ included:
7
7
  injectedDeps: {}
8
8
  layoutVersion: 5
9
9
  nodeLinker: hoisted
10
- packageManager: pnpm@6.29.2
10
+ packageManager: pnpm@6.30.0
11
11
  pendingBuilds:
12
12
  - /node-gyp/8.4.1
13
13
  - /encoding/0.1.13
14
- prunedAt: Sun, 06 Feb 2022 17:07:00 GMT
14
+ prunedAt: Wed, 09 Feb 2022 22:29:33 GMT
15
15
  publicHoistPattern:
16
16
  - '*types*'
17
17
  - '*eslint*'
@@ -84,9 +84,9 @@ packages:
84
84
  dev: false
85
85
  optional: true
86
86
 
87
- /are-we-there-yet/2.0.0:
88
- resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}
89
- engines: {node: '>=10'}
87
+ /are-we-there-yet/3.0.0:
88
+ resolution: {integrity: sha512-0GWpv50YSOcLXaN6/FAKY3vfRbllXWV2xvfA/oKJF8pzFhWXPV+yjhJXDBbjscDYowv7Yw1A3uigpzn5iEGTyw==}
89
+ engines: {node: ^12.13.0 || ^14.15.0 || >=16}
90
90
  dependencies:
91
91
  delegates: 1.0.0
92
92
  readable-stream: 3.6.0
@@ -242,7 +242,7 @@ packages:
242
242
  fs.realpath: 1.0.0
243
243
  inflight: 1.0.6
244
244
  inherits: 2.0.4
245
- minimatch: 3.0.4
245
+ minimatch: 3.0.5
246
246
  once: 1.4.0
247
247
  path-is-absolute: 1.0.1
248
248
  dev: false
@@ -385,8 +385,8 @@ packages:
385
385
  dev: false
386
386
  optional: true
387
387
 
388
- /minimatch/3.0.4:
389
- resolution: {integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==}
388
+ /minimatch/3.0.5:
389
+ resolution: {integrity: sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==}
390
390
  dependencies:
391
391
  brace-expansion: 1.1.11
392
392
  dev: false
@@ -487,7 +487,7 @@ packages:
487
487
  graceful-fs: 4.2.9
488
488
  make-fetch-happen: 9.1.0
489
489
  nopt: 5.0.0
490
- npmlog: 6.0.0
490
+ npmlog: 6.0.1
491
491
  rimraf: 3.0.2
492
492
  semver: 7.3.5
493
493
  tar: 6.1.11
@@ -506,11 +506,11 @@ packages:
506
506
  dev: false
507
507
  optional: true
508
508
 
509
- /npmlog/6.0.0:
510
- resolution: {integrity: sha512-03ppFRGlsyUaQFbGC2C8QWJN/C/K7PsfyD9aQdhVKAQIH4sQBc8WASqFBP7O+Ut4d2oo5LoeoboB3cGdBZSp6Q==}
509
+ /npmlog/6.0.1:
510
+ resolution: {integrity: sha512-BTHDvY6nrRHuRfyjt1MAufLxYdVXZfd099H4+i1f0lPywNQyI4foeNXJRObB/uy+TYqUW0vAD9gbdSOXPst7Eg==}
511
511
  engines: {node: ^12.13.0 || ^14.15.0 || >=16}
512
512
  dependencies:
513
- are-we-there-yet: 2.0.0
513
+ are-we-there-yet: 3.0.0
514
514
  console-control-strings: 1.1.0
515
515
  gauge: 4.0.0
516
516
  set-blocking: 2.0.0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "are-we-there-yet",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Keep track of the overall completion of many disparate processes",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -13,7 +13,9 @@
13
13
  "preversion": "npm test",
14
14
  "postversion": "npm publish",
15
15
  "prepublishOnly": "git push origin --follow-tags",
16
- "snap": "tap"
16
+ "snap": "tap",
17
+ "postlint": "npm-template-check",
18
+ "template-copy": "npm-template-copy --force"
17
19
  },
18
20
  "repository": {
19
21
  "type": "git",
@@ -26,9 +28,9 @@
26
28
  },
27
29
  "homepage": "https://github.com/npm/are-we-there-yet",
28
30
  "devDependencies": {
29
- "@npmcli/eslint-config": "^1.0.0",
30
- "@npmcli/template-oss": "^1.0.2",
31
- "eslint": "^7.32.0",
31
+ "@npmcli/eslint-config": "^2.0.0",
32
+ "@npmcli/template-oss": "^2.7.1",
33
+ "eslint": "^8.8.0",
32
34
  "eslint-plugin-node": "^11.1.0",
33
35
  "tap": "^15.0.9"
34
36
  },
@@ -41,7 +43,7 @@
41
43
  "lib"
42
44
  ],
43
45
  "engines": {
44
- "node": ">=10"
46
+ "node": "^12.13.0 || ^14.15.0 || >=16"
45
47
  },
46
48
  "tap": {
47
49
  "branches": 68,
@@ -49,5 +51,7 @@
49
51
  "functions": 86,
50
52
  "lines": 92
51
53
  },
52
- "templateVersion": "1.0.2"
54
+ "templateOSS": {
55
+ "version": "2.7.1"
56
+ }
53
57
  }
@@ -1,15 +1,15 @@
1
1
  module.exports = minimatch
2
2
  minimatch.Minimatch = Minimatch
3
3
 
4
- var path = { sep: '/' }
5
- try {
6
- path = require('path')
7
- } catch (er) {}
4
+ const path = (() => { try { return require('path') } catch (e) {}})() || {
5
+ sep: '/'
6
+ }
7
+ minimatch.sep = path.sep
8
8
 
9
- var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
10
- var expand = require('brace-expansion')
9
+ const GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
10
+ const expand = require('brace-expansion')
11
11
 
12
- var plTypes = {
12
+ const plTypes = {
13
13
  '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
14
14
  '?': { open: '(?:', close: ')?' },
15
15
  '+': { open: '(?:', close: ')+' },
@@ -19,22 +19,22 @@ var plTypes = {
19
19
 
20
20
  // any single thing other than /
21
21
  // don't need to escape / when using new RegExp()
22
- var qmark = '[^/]'
22
+ const qmark = '[^/]'
23
23
 
24
24
  // * => any number of characters
25
- var star = qmark + '*?'
25
+ const star = qmark + '*?'
26
26
 
27
27
  // ** when dots are allowed. Anything goes, except .. and .
28
28
  // not (^ or / followed by one or two dots followed by $ or /),
29
29
  // followed by anything, any number of times.
30
- var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
30
+ const twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
31
31
 
32
32
  // not a ^ or / followed by a dot,
33
33
  // followed by anything, any number of times.
34
- var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
34
+ const twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
35
35
 
36
36
  // characters that need to be escaped in RegExp.
37
- var reSpecials = charSet('().*{}+?[]^$\\!')
37
+ const reSpecials = charSet('().*{}+?[]^$\\!')
38
38
 
39
39
  // "abc" -> { a:true, b:true, c:true }
40
40
  function charSet (s) {
@@ -45,7 +45,7 @@ function charSet (s) {
45
45
  }
46
46
 
47
47
  // normalizes slashes.
48
- var slashSplit = /\/+/
48
+ const slashSplit = /\/+/
49
49
 
50
50
  minimatch.filter = filter
51
51
  function filter (pattern, options) {
@@ -58,41 +58,63 @@ function filter (pattern, options) {
58
58
  function ext (a, b) {
59
59
  a = a || {}
60
60
  b = b || {}
61
- var t = {}
62
- Object.keys(b).forEach(function (k) {
63
- t[k] = b[k]
64
- })
61
+ const t = {}
65
62
  Object.keys(a).forEach(function (k) {
66
63
  t[k] = a[k]
67
64
  })
65
+ Object.keys(b).forEach(function (k) {
66
+ t[k] = b[k]
67
+ })
68
68
  return t
69
69
  }
70
70
 
71
71
  minimatch.defaults = function (def) {
72
- if (!def || !Object.keys(def).length) return minimatch
72
+ if (!def || typeof def !== 'object' || !Object.keys(def).length) {
73
+ return minimatch
74
+ }
73
75
 
74
- var orig = minimatch
76
+ const orig = minimatch
75
77
 
76
- var m = function minimatch (p, pattern, options) {
77
- return orig.minimatch(p, pattern, ext(def, options))
78
+ const m = function minimatch (p, pattern, options) {
79
+ return orig(p, pattern, ext(def, options))
78
80
  }
79
81
 
80
82
  m.Minimatch = function Minimatch (pattern, options) {
81
83
  return new orig.Minimatch(pattern, ext(def, options))
82
84
  }
85
+ m.Minimatch.defaults = options => {
86
+ return orig.defaults(ext(def, options)).Minimatch
87
+ }
88
+
89
+ m.filter = function filter (pattern, options) {
90
+ return orig.filter(pattern, ext(def, options))
91
+ }
92
+
93
+ m.defaults = function defaults (options) {
94
+ return orig.defaults(ext(def, options))
95
+ }
96
+
97
+ m.makeRe = function makeRe (pattern, options) {
98
+ return orig.makeRe(pattern, ext(def, options))
99
+ }
100
+
101
+ m.braceExpand = function braceExpand (pattern, options) {
102
+ return orig.braceExpand(pattern, ext(def, options))
103
+ }
104
+
105
+ m.match = function (list, pattern, options) {
106
+ return orig.match(list, pattern, ext(def, options))
107
+ }
83
108
 
84
109
  return m
85
110
  }
86
111
 
87
112
  Minimatch.defaults = function (def) {
88
- if (!def || !Object.keys(def).length) return Minimatch
89
113
  return minimatch.defaults(def).Minimatch
90
114
  }
91
115
 
92
116
  function minimatch (p, pattern, options) {
93
- if (typeof pattern !== 'string') {
94
- throw new TypeError('glob pattern string required')
95
- }
117
+ assertValidPattern(pattern)
96
118
 
97
119
  if (!options) options = {}
98
120
 
@@ -112,9 +134,7 @@ function Minimatch (pattern, options) {
112
134
  return new Minimatch(pattern, options)
113
135
  }
114
136
 
115
- if (typeof pattern !== 'string') {
116
- throw new TypeError('glob pattern string required')
117
- }
137
+ assertValidPattern(pattern)
118
138
 
119
139
  if (!options) options = {}
120
140
  pattern = pattern.trim()
@@ -242,12 +262,9 @@ function braceExpand (pattern, options) {
242
262
  pattern = typeof pattern === 'undefined'
243
263
  ? this.pattern : pattern
244
264
 
245
- if (typeof pattern === 'undefined') {
246
- throw new TypeError('undefined pattern')
247
- }
265
+ assertValidPattern(pattern)
248
266
 
249
- if (options.nobrace ||
250
- !pattern.match(/\{.*\}/)) {
267
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
251
268
  // shortcut. no need to expand.
252
269
  return [pattern]
253
270
  }
@@ -255,6 +272,17 @@ function braceExpand (pattern, options) {
255
272
  return expand(pattern)
256
273
  }
257
274
 
275
+ const MAX_PATTERN_LENGTH = 1024 * 64
276
+ const assertValidPattern = pattern => {
277
+ if (typeof pattern !== 'string') {
278
+ throw new TypeError('invalid pattern')
279
+ }
280
+
281
+ if (pattern.length > MAX_PATTERN_LENGTH) {
282
+ throw new TypeError('pattern is too long')
283
+ }
284
+ }
285
+
258
286
  // parse a component of the expanded set.
259
287
  // At this point, no pattern may contain "/" in it
260
288
  // so we're going to return a 2d array, where each entry is the full
@@ -267,11 +295,9 @@ function braceExpand (pattern, options) {
267
295
  // of * is equivalent to a single *. Globstar behavior is enabled by
268
296
  // default, and can be disabled by setting options.noglobstar.
269
297
  Minimatch.prototype.parse = parse
270
- var SUBPARSE = {}
298
+ const SUBPARSE = {}
271
299
  function parse (pattern, isSub) {
272
- if (pattern.length > 1024 * 64) {
273
- throw new TypeError('pattern is too long')
274
- }
300
+ assertValidPattern(pattern)
275
301
 
276
302
  var options = this.options
277
303
 
@@ -280,7 +306,7 @@ function parse (pattern, isSub) {
280
306
  if (pattern === '') return ''
281
307
 
282
308
  var re = ''
283
- var hasMagic = !!options.nocase
309
+ var hasMagic = false
284
310
  var escaping = false
285
311
  // ? => one single character
286
312
  var patternListStack = []
@@ -332,10 +358,11 @@ function parse (pattern, isSub) {
332
358
  }
333
359
 
334
360
  switch (c) {
335
- case '/':
361
+ case '/': /* istanbul ignore next */ {
336
362
  // completely not allowed, even escaped.
337
363
  // Should already be path-split by now.
338
364
  return false
365
+ }
339
366
 
340
367
  case '\\':
341
368
  clearStateChar()
@@ -620,7 +647,7 @@ function parse (pattern, isSub) {
620
647
  var flags = options.nocase ? 'i' : ''
621
648
  try {
622
649
  var regExp = new RegExp('^' + re + '$', flags)
623
- } catch (er) {
650
+ } catch (er) /* istanbul ignore next - should be impossible */ {
624
651
  // If it was an invalid regular expression, then it can't match
625
652
  // anything. This trick looks for a character after the end of
626
653
  // the string, which is of course impossible, except in multi-line
@@ -678,7 +705,7 @@ function makeRe () {
678
705
 
679
706
  try {
680
707
  this.regexp = new RegExp(re, flags)
681
- } catch (ex) {
708
+ } catch (ex) /* istanbul ignore next - should be impossible */ {
682
709
  this.regexp = false
683
710
  }
684
711
  return this.regexp
@@ -686,7 +713,7 @@ function makeRe () {
686
713
 
687
714
  minimatch.match = function (list, pattern, options) {
688
715
  options = options || {}
689
- var mm = new Minimatch(pattern, options)
716
+ const mm = new Minimatch(pattern, options)
690
717
  list = list.filter(function (f) {
691
718
  return mm.match(f)
692
719
  })
@@ -779,6 +806,7 @@ Minimatch.prototype.matchOne = function (file, pattern, partial) {
779
806
 
780
807
  // should be impossible.
781
808
  // some invalid regexp stuff in the set.
809
+ /* istanbul ignore if */
782
810
  if (p === false) return false
783
811
 
784
812
  if (p === GLOBSTAR) {
@@ -852,6 +880,7 @@ Minimatch.prototype.matchOne = function (file, pattern, partial) {
852
880
  // no match was found.
853
881
  // However, in partial mode, we can't say this is necessarily over.
854
882
  // If there's more *pattern* left, then
883
+ /* istanbul ignore if */
855
884
  if (partial) {
856
885
  // ran out of file
857
886
  this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
@@ -900,16 +929,16 @@ Minimatch.prototype.matchOne = function (file, pattern, partial) {
900
929
  // this is ok if we're doing the match as part of
901
930
  // a glob fs traversal.
902
931
  return partial
903
- } else if (pi === pl) {
932
+ } else /* istanbul ignore else */ if (pi === pl) {
904
933
  // ran out of pattern, still have file left.
905
934
  // this is only acceptable if we're on the very last
906
935
  // empty segment of a file with a trailing slash.
907
936
  // a/* should match a/b/
908
- var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')
909
- return emptyFileEnd
937
+ return (fi === fl - 1) && (file[fi] === '')
910
938
  }
911
939
 
912
940
  // should be unreachable.
941
+ /* istanbul ignore next */
913
942
  throw new Error('wtf?')
914
943
  }
915
944
 
@@ -2,14 +2,14 @@
2
2
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
3
3
  "name": "minimatch",
4
4
  "description": "a glob matcher in javascript",
5
- "version": "3.0.4",
5
+ "version": "3.0.5",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git://github.com/isaacs/minimatch.git"
9
9
  },
10
10
  "main": "minimatch.js",
11
11
  "scripts": {
12
- "test": "tap test/*.js --cov",
12
+ "test": "tap",
13
13
  "preversion": "npm test",
14
14
  "postversion": "npm publish",
15
15
  "postpublish": "git push origin --all; git push origin --tags"
@@ -21,7 +21,7 @@
21
21
  "brace-expansion": "^1.1.7"
22
22
  },
23
23
  "devDependencies": {
24
- "tap": "^10.3.2"
24
+ "tap": "^15.1.6"
25
25
  },
26
26
  "license": "ISC",
27
27
  "files": [
@@ -292,8 +292,9 @@ log.emitLog = function (m) {
292
292
  var disp = log.disp[m.level] != null ? log.disp[m.level] : m.level
293
293
  this.clearProgress()
294
294
  m.message.split(/\r?\n/).forEach(function (line) {
295
- if (this.heading) {
296
- this.write(this.heading, this.headingStyle)
295
+ var heading = this.heading
296
+ if (heading) {
297
+ this.write(heading, this.headingStyle)
297
298
  this.write(' ')
298
299
  }
299
300
  this.write(disp, log.style[m.level])
@@ -390,11 +391,11 @@ log.style = {}
390
391
  log.levels = {}
391
392
  log.disp = {}
392
393
  log.addLevel('silly', -Infinity, { inverse: true }, 'sill')
393
- log.addLevel('verbose', 1000, { fg: 'blue', bg: 'black' }, 'verb')
394
+ log.addLevel('verbose', 1000, { fg: 'cyan', bg: 'black' }, 'verb')
394
395
  log.addLevel('info', 2000, { fg: 'green' })
395
396
  log.addLevel('timing', 2500, { fg: 'green', bg: 'black' })
396
397
  log.addLevel('http', 3000, { fg: 'green', bg: 'black' })
397
- log.addLevel('notice', 3500, { fg: 'blue', bg: 'black' })
398
+ log.addLevel('notice', 3500, { fg: 'cyan', bg: 'black' })
398
399
  log.addLevel('warn', 4000, { fg: 'black', bg: 'yellow' }, 'WARN')
399
400
  log.addLevel('error', 5000, { fg: 'red', bg: 'black' }, 'ERR!')
400
401
  log.addLevel('silent', Infinity)
@@ -2,7 +2,7 @@
2
2
  "author": "GitHub Inc.",
3
3
  "name": "npmlog",
4
4
  "description": "logger for npm",
5
- "version": "6.0.0",
5
+ "version": "6.0.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/npm/npmlog.git"
@@ -23,24 +23,27 @@
23
23
  "preversion": "npm test",
24
24
  "postversion": "npm publish",
25
25
  "prepublishOnly": "git push origin --follow-tags",
26
- "snap": "tap"
26
+ "snap": "tap",
27
+ "template-copy": "npm-template-copy --force"
27
28
  },
28
29
  "dependencies": {
29
- "are-we-there-yet": "^2.0.0",
30
+ "are-we-there-yet": "^3.0.0",
30
31
  "console-control-strings": "^1.1.0",
31
32
  "gauge": "^4.0.0",
32
33
  "set-blocking": "^2.0.0"
33
34
  },
34
35
  "devDependencies": {
35
- "@npmcli/template-oss": "^2.3.0",
36
- "tap": "^15.0.9"
36
+ "@npmcli/template-oss": "^2.7.1",
37
+ "tap": "^15.1.6"
37
38
  },
38
39
  "license": "ISC",
39
- "templateVersion": "2.3.0",
40
40
  "engines": {
41
41
  "node": "^12.13.0 || ^14.15.0 || >=16"
42
42
  },
43
43
  "tap": {
44
44
  "branches": 95
45
+ },
46
+ "templateOSS": {
47
+ "version": "2.7.1"
45
48
  }
46
49
  }