pnpm 10.30.1 → 10.30.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 +118 -116
- package/dist/node_modules/.pnpm/lock.yaml +15 -13
- package/dist/node_modules/.pnpm-workspace-state-v1.json +1 -1
- package/dist/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/dist/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/dist/node_modules/balanced-match/dist/esm/index.js.map +1 -0
- package/dist/node_modules/balanced-match/package.json +48 -28
- package/dist/node_modules/brace-expansion/LICENSE +3 -1
- package/dist/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +199 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/brace-expansion/dist/esm/index.js +195 -0
- package/dist/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
- package/dist/node_modules/brace-expansion/package.json +51 -36
- package/dist/node_modules/cross-spawn/node_modules/isexe/package.json +31 -0
- package/dist/node_modules/cross-spawn/node_modules/which/package.json +43 -0
- package/dist/node_modules/isexe/LICENSE +1 -1
- package/dist/node_modules/isexe/dist/cjs/package.json +3 -0
- package/dist/node_modules/isexe/dist/mjs/package.json +3 -0
- package/dist/node_modules/isexe/package.json +79 -14
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +11 -4
- package/dist/node_modules/minimatch/dist/commonjs/ast.js.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/index.js +2 -5
- package/dist/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/ast.js +11 -4
- package/dist/node_modules/minimatch/dist/esm/ast.js.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/index.js +1 -1
- package/dist/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/dist/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -1
- package/dist/node_modules/minimatch/package.json +13 -14
- package/dist/node_modules/{node-gyp/node_modules/isexe → minipass-flush/node_modules/yallist}/LICENSE +1 -1
- package/dist/node_modules/minipass-flush/node_modules/yallist/package.json +29 -0
- package/dist/node_modules/minipass-pipeline/node_modules/yallist/LICENSE +15 -0
- package/dist/node_modules/minipass-pipeline/node_modules/yallist/iterator.js +8 -0
- package/dist/node_modules/minipass-pipeline/node_modules/yallist/package.json +29 -0
- package/dist/node_modules/minipass-pipeline/node_modules/yallist/yallist.js +426 -0
- package/dist/node_modules/minipass-sized/node_modules/yallist/LICENSE +15 -0
- package/dist/node_modules/minipass-sized/node_modules/yallist/iterator.js +8 -0
- package/dist/node_modules/minipass-sized/node_modules/yallist/package.json +29 -0
- package/dist/node_modules/minipass-sized/node_modules/yallist/yallist.js +426 -0
- package/dist/node_modules/which/package.json +29 -20
- package/dist/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/yallist/dist/esm/package.json +3 -0
- package/dist/node_modules/yallist/package.json +51 -12
- package/dist/pnpm.cjs +136 -131
- package/package.json +1 -1
- package/dist/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/dist/node_modules/balanced-match/index.js +0 -62
- package/dist/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
- package/dist/node_modules/brace-expansion/index.js +0 -203
- package/dist/node_modules/node-gyp/node_modules/isexe/package.json +0 -96
- package/dist/node_modules/node-gyp/node_modules/which/package.json +0 -52
- package/dist/node_modules/tar/node_modules/yallist/package.json +0 -68
- /package/dist/node_modules/{node-gyp/node_modules/isexe/dist/cjs → balanced-match/dist/commonjs}/package.json +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe/dist/mjs → balanced-match/dist/esm}/package.json +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → brace-expansion}/dist/commonjs/package.json +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → brace-expansion}/dist/esm/package.json +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/which → cross-spawn/node_modules/isexe}/LICENSE +0 -0
- /package/dist/node_modules/{isexe → cross-spawn/node_modules/isexe}/index.js +0 -0
- /package/dist/node_modules/{isexe → cross-spawn/node_modules/isexe}/mode.js +0 -0
- /package/dist/node_modules/{isexe → cross-spawn/node_modules/isexe}/windows.js +0 -0
- /package/dist/node_modules/{yallist → cross-spawn/node_modules/which}/LICENSE +0 -0
- /package/dist/node_modules/{which → cross-spawn/node_modules/which}/bin/node-which +0 -0
- /package/dist/node_modules/{which → cross-spawn/node_modules/which}/which.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/index.d.ts.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/index.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/index.js.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/options.d.ts.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/options.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/options.js.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/posix.d.ts.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/posix.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/posix.js.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/win32.d.ts.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/win32.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/cjs/win32.js.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/index.d.ts.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/index.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/index.js.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/options.d.ts.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/options.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/options.js.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/posix.d.ts.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/posix.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/posix.js.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/win32.d.ts.map +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/win32.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/mjs/win32.js.map +0 -0
- /package/dist/node_modules/{yallist → minipass-flush/node_modules/yallist}/iterator.js +0 -0
- /package/dist/node_modules/{yallist → minipass-flush/node_modules/yallist}/yallist.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/which → which}/bin/which.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/which → which}/lib/index.js +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.d.ts.map +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js.map +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.d.ts.map +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js +0 -0
- /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js.map +0 -0
|
@@ -13,51 +13,72 @@
|
|
|
13
13
|
"v8-compile-cache@2.4.0": [
|
|
14
14
|
"node_modules/v8-compile-cache"
|
|
15
15
|
],
|
|
16
|
-
"
|
|
17
|
-
"node_modules/node-gyp
|
|
18
|
-
],
|
|
19
|
-
"isexe@3.1.1": [
|
|
20
|
-
"node_modules/node-gyp/node_modules/isexe"
|
|
16
|
+
"node-gyp@11.5.0": [
|
|
17
|
+
"node_modules/node-gyp"
|
|
21
18
|
],
|
|
22
19
|
"nopt@8.1.0": [
|
|
23
20
|
"node_modules/nopt"
|
|
24
21
|
],
|
|
22
|
+
"tar@7.5.9": [
|
|
23
|
+
"node_modules/tar"
|
|
24
|
+
],
|
|
25
25
|
"tinyglobby@0.2.15": [
|
|
26
26
|
"node_modules/tinyglobby"
|
|
27
27
|
],
|
|
28
|
-
"
|
|
29
|
-
"node_modules/
|
|
28
|
+
"semver@7.7.4": [
|
|
29
|
+
"node_modules/semver"
|
|
30
30
|
],
|
|
31
31
|
"env-paths@2.2.1": [
|
|
32
32
|
"node_modules/env-paths"
|
|
33
33
|
],
|
|
34
|
-
"
|
|
35
|
-
"node_modules/
|
|
34
|
+
"proc-log@5.0.0": [
|
|
35
|
+
"node_modules/proc-log"
|
|
36
36
|
],
|
|
37
37
|
"exponential-backoff@3.1.3": [
|
|
38
38
|
"node_modules/exponential-backoff"
|
|
39
39
|
],
|
|
40
|
+
"which@5.0.0": [
|
|
41
|
+
"node_modules/which"
|
|
42
|
+
],
|
|
40
43
|
"graceful-fs@4.2.11": [
|
|
41
44
|
"node_modules/graceful-fs"
|
|
42
45
|
],
|
|
43
|
-
"
|
|
44
|
-
"node_modules/
|
|
45
|
-
],
|
|
46
|
-
"semver@7.7.4": [
|
|
47
|
-
"node_modules/semver"
|
|
46
|
+
"make-fetch-happen@14.0.3": [
|
|
47
|
+
"node_modules/make-fetch-happen"
|
|
48
48
|
],
|
|
49
49
|
"abbrev@3.0.1": [
|
|
50
50
|
"node_modules/abbrev"
|
|
51
51
|
],
|
|
52
|
-
"
|
|
53
|
-
"node_modules/
|
|
52
|
+
"chownr@3.0.0": [
|
|
53
|
+
"node_modules/chownr"
|
|
54
54
|
],
|
|
55
|
-
"
|
|
56
|
-
"node_modules/
|
|
55
|
+
"yallist@5.0.0": [
|
|
56
|
+
"node_modules/yallist"
|
|
57
|
+
],
|
|
58
|
+
"@isaacs/fs-minipass@4.0.1": [
|
|
59
|
+
"node_modules/@isaacs/fs-minipass"
|
|
60
|
+
],
|
|
61
|
+
"minizlib@3.1.0": [
|
|
62
|
+
"node_modules/minizlib"
|
|
57
63
|
],
|
|
58
64
|
"minipass@7.1.3": [
|
|
59
65
|
"node_modules/minipass"
|
|
60
66
|
],
|
|
67
|
+
"fdir@6.5.0(picomatch@4.0.3)": [
|
|
68
|
+
"node_modules/fdir"
|
|
69
|
+
],
|
|
70
|
+
"picomatch@4.0.3": [
|
|
71
|
+
"node_modules/picomatch"
|
|
72
|
+
],
|
|
73
|
+
"isexe@3.1.1": [
|
|
74
|
+
"node_modules/isexe"
|
|
75
|
+
],
|
|
76
|
+
"ssri@12.0.0": [
|
|
77
|
+
"node_modules/ssri"
|
|
78
|
+
],
|
|
79
|
+
"cacache@19.0.1": [
|
|
80
|
+
"node_modules/cacache"
|
|
81
|
+
],
|
|
61
82
|
"negotiator@1.0.0": [
|
|
62
83
|
"node_modules/negotiator"
|
|
63
84
|
],
|
|
@@ -66,66 +87,53 @@
|
|
|
66
87
|
"node_modules/minipass-pipeline/node_modules/minipass",
|
|
67
88
|
"node_modules/minipass-sized/node_modules/minipass"
|
|
68
89
|
],
|
|
90
|
+
"yallist@4.0.0": [
|
|
91
|
+
"node_modules/minipass-flush/node_modules/yallist",
|
|
92
|
+
"node_modules/minipass-pipeline/node_modules/yallist",
|
|
93
|
+
"node_modules/minipass-sized/node_modules/yallist"
|
|
94
|
+
],
|
|
69
95
|
"promise-retry@2.0.1": [
|
|
70
96
|
"node_modules/promise-retry"
|
|
71
97
|
],
|
|
72
|
-
"ssri@12.0.0": [
|
|
73
|
-
"node_modules/ssri"
|
|
74
|
-
],
|
|
75
|
-
"http-cache-semantics@4.2.0": [
|
|
76
|
-
"node_modules/http-cache-semantics"
|
|
77
|
-
],
|
|
78
98
|
"minipass-fetch@4.0.1": [
|
|
79
99
|
"node_modules/minipass-fetch"
|
|
80
100
|
],
|
|
81
|
-
"
|
|
82
|
-
"node_modules/
|
|
101
|
+
"http-cache-semantics@4.2.0": [
|
|
102
|
+
"node_modules/http-cache-semantics"
|
|
83
103
|
],
|
|
84
104
|
"@npmcli/agent@3.0.0": [
|
|
85
105
|
"node_modules/@npmcli/agent"
|
|
86
106
|
],
|
|
87
|
-
"
|
|
88
|
-
"node_modules/
|
|
89
|
-
],
|
|
90
|
-
"minizlib@3.1.0": [
|
|
91
|
-
"node_modules/minizlib"
|
|
92
|
-
],
|
|
93
|
-
"@isaacs/fs-minipass@4.0.1": [
|
|
94
|
-
"node_modules/@isaacs/fs-minipass"
|
|
95
|
-
],
|
|
96
|
-
"yallist@4.0.0": [
|
|
97
|
-
"node_modules/yallist"
|
|
98
|
-
],
|
|
99
|
-
"retry@0.12.0": [
|
|
100
|
-
"node_modules/retry"
|
|
101
|
-
],
|
|
102
|
-
"err-code@2.0.3": [
|
|
103
|
-
"node_modules/err-code"
|
|
104
|
-
],
|
|
105
|
-
"encoding@0.1.13": [
|
|
106
|
-
"node_modules/encoding"
|
|
107
|
+
"unique-filename@4.0.0": [
|
|
108
|
+
"node_modules/unique-filename"
|
|
107
109
|
],
|
|
108
110
|
"minipass-collect@2.0.1": [
|
|
109
111
|
"node_modules/minipass-collect"
|
|
110
112
|
],
|
|
111
|
-
"
|
|
112
|
-
"node_modules/
|
|
113
|
+
"@npmcli/fs@4.0.0": [
|
|
114
|
+
"node_modules/@npmcli/fs"
|
|
113
115
|
],
|
|
114
116
|
"fs-minipass@3.0.3": [
|
|
115
117
|
"node_modules/fs-minipass"
|
|
116
118
|
],
|
|
117
|
-
"@
|
|
118
|
-
"node_modules
|
|
119
|
+
"p-map@7.0.4": [
|
|
120
|
+
"node_modules/p-map"
|
|
119
121
|
],
|
|
120
122
|
"lru-cache@10.4.3": [
|
|
121
123
|
"node_modules/lru-cache"
|
|
122
124
|
],
|
|
123
|
-
"unique-filename@4.0.0": [
|
|
124
|
-
"node_modules/unique-filename"
|
|
125
|
-
],
|
|
126
125
|
"glob@10.5.0": [
|
|
127
126
|
"node_modules/glob"
|
|
128
127
|
],
|
|
128
|
+
"retry@0.12.0": [
|
|
129
|
+
"node_modules/retry"
|
|
130
|
+
],
|
|
131
|
+
"err-code@2.0.3": [
|
|
132
|
+
"node_modules/err-code"
|
|
133
|
+
],
|
|
134
|
+
"encoding@0.1.13": [
|
|
135
|
+
"node_modules/encoding"
|
|
136
|
+
],
|
|
129
137
|
"https-proxy-agent@7.0.6": [
|
|
130
138
|
"node_modules/https-proxy-agent"
|
|
131
139
|
],
|
|
@@ -138,26 +146,26 @@
|
|
|
138
146
|
"agent-base@7.1.4": [
|
|
139
147
|
"node_modules/agent-base"
|
|
140
148
|
],
|
|
141
|
-
"iconv-lite@0.6.3": [
|
|
142
|
-
"node_modules/iconv-lite"
|
|
143
|
-
],
|
|
144
149
|
"unique-slug@5.0.0": [
|
|
145
150
|
"node_modules/unique-slug"
|
|
146
151
|
],
|
|
147
152
|
"package-json-from-dist@1.0.1": [
|
|
148
153
|
"node_modules/package-json-from-dist"
|
|
149
154
|
],
|
|
155
|
+
"foreground-child@3.3.1": [
|
|
156
|
+
"node_modules/foreground-child"
|
|
157
|
+
],
|
|
150
158
|
"jackspeak@3.4.3": [
|
|
151
159
|
"node_modules/jackspeak"
|
|
152
160
|
],
|
|
153
161
|
"path-scurry@1.11.1": [
|
|
154
162
|
"node_modules/path-scurry"
|
|
155
163
|
],
|
|
156
|
-
"minimatch@9.0.
|
|
164
|
+
"minimatch@9.0.6": [
|
|
157
165
|
"node_modules/minimatch"
|
|
158
166
|
],
|
|
159
|
-
"
|
|
160
|
-
"node_modules/
|
|
167
|
+
"iconv-lite@0.6.3": [
|
|
168
|
+
"node_modules/iconv-lite"
|
|
161
169
|
],
|
|
162
170
|
"debug@4.4.3": [
|
|
163
171
|
"node_modules/debug"
|
|
@@ -165,59 +173,53 @@
|
|
|
165
173
|
"socks@2.8.7": [
|
|
166
174
|
"node_modules/socks"
|
|
167
175
|
],
|
|
168
|
-
"safer-buffer@2.1.2": [
|
|
169
|
-
"node_modules/safer-buffer"
|
|
170
|
-
],
|
|
171
176
|
"imurmurhash@0.1.4": [
|
|
172
177
|
"node_modules/imurmurhash"
|
|
173
178
|
],
|
|
179
|
+
"signal-exit@4.1.0": [
|
|
180
|
+
"node_modules/signal-exit"
|
|
181
|
+
],
|
|
182
|
+
"which@2.0.2": [
|
|
183
|
+
"node_modules/cross-spawn/node_modules/which"
|
|
184
|
+
],
|
|
185
|
+
"isexe@2.0.0": [
|
|
186
|
+
"node_modules/cross-spawn/node_modules/isexe"
|
|
187
|
+
],
|
|
174
188
|
"@isaacs/cliui@8.0.2": [
|
|
175
189
|
"node_modules/@isaacs/cliui"
|
|
176
190
|
],
|
|
177
191
|
"@pkgjs/parseargs@0.11.0": [
|
|
178
192
|
"node_modules/@pkgjs/parseargs"
|
|
179
193
|
],
|
|
180
|
-
"brace-expansion@
|
|
194
|
+
"brace-expansion@5.0.3": [
|
|
181
195
|
"node_modules/brace-expansion"
|
|
182
196
|
],
|
|
183
|
-
"
|
|
184
|
-
"node_modules/
|
|
185
|
-
],
|
|
186
|
-
"cross-spawn@7.0.6": [
|
|
187
|
-
"node_modules/cross-spawn"
|
|
197
|
+
"safer-buffer@2.1.2": [
|
|
198
|
+
"node_modules/safer-buffer"
|
|
188
199
|
],
|
|
189
200
|
"ms@2.1.3": [
|
|
190
201
|
"node_modules/ms"
|
|
191
202
|
],
|
|
192
|
-
"ip-address@10.1.0": [
|
|
193
|
-
"node_modules/ip-address"
|
|
194
|
-
],
|
|
195
203
|
"smart-buffer@4.2.0": [
|
|
196
204
|
"node_modules/smart-buffer"
|
|
197
205
|
],
|
|
198
|
-
"
|
|
199
|
-
"node_modules/
|
|
206
|
+
"ip-address@10.1.0": [
|
|
207
|
+
"node_modules/ip-address"
|
|
200
208
|
],
|
|
201
|
-
"
|
|
202
|
-
"node_modules/
|
|
203
|
-
"node_modules/string-width-cjs/node_modules/ansi-regex",
|
|
204
|
-
"node_modules/wrap-ansi-cjs/node_modules/ansi-regex"
|
|
209
|
+
"shebang-command@2.0.0": [
|
|
210
|
+
"node_modules/shebang-command"
|
|
205
211
|
],
|
|
206
|
-
"
|
|
207
|
-
"node_modules/
|
|
212
|
+
"path-key@3.1.1": [
|
|
213
|
+
"node_modules/path-key"
|
|
214
|
+
],
|
|
215
|
+
"wrap-ansi@8.1.0": [
|
|
216
|
+
"node_modules/wrap-ansi"
|
|
208
217
|
],
|
|
209
218
|
"strip-ansi@6.0.1": [
|
|
210
|
-
"node_modules/string-width-cjs/node_modules/strip-ansi",
|
|
211
219
|
"node_modules/wrap-ansi-cjs/node_modules/strip-ansi",
|
|
220
|
+
"node_modules/string-width-cjs/node_modules/strip-ansi",
|
|
212
221
|
"node_modules/strip-ansi-cjs"
|
|
213
222
|
],
|
|
214
|
-
"emoji-regex@8.0.0": [
|
|
215
|
-
"node_modules/string-width-cjs/node_modules/emoji-regex",
|
|
216
|
-
"node_modules/wrap-ansi-cjs/node_modules/emoji-regex"
|
|
217
|
-
],
|
|
218
|
-
"wrap-ansi@8.1.0": [
|
|
219
|
-
"node_modules/wrap-ansi"
|
|
220
|
-
],
|
|
221
223
|
"string-width@4.2.3": [
|
|
222
224
|
"node_modules/wrap-ansi-cjs/node_modules/string-width",
|
|
223
225
|
"node_modules/string-width-cjs"
|
|
@@ -225,51 +227,48 @@
|
|
|
225
227
|
"ansi-styles@4.3.0": [
|
|
226
228
|
"node_modules/wrap-ansi-cjs/node_modules/ansi-styles"
|
|
227
229
|
],
|
|
228
|
-
"
|
|
229
|
-
"node_modules/
|
|
230
|
+
"ansi-regex@5.0.1": [
|
|
231
|
+
"node_modules/wrap-ansi-cjs/node_modules/ansi-regex",
|
|
232
|
+
"node_modules/strip-ansi-cjs/node_modules/ansi-regex",
|
|
233
|
+
"node_modules/string-width-cjs/node_modules/ansi-regex"
|
|
230
234
|
],
|
|
231
|
-
"
|
|
232
|
-
"node_modules/
|
|
235
|
+
"emoji-regex@8.0.0": [
|
|
236
|
+
"node_modules/wrap-ansi-cjs/node_modules/emoji-regex",
|
|
237
|
+
"node_modules/string-width-cjs/node_modules/emoji-regex"
|
|
233
238
|
],
|
|
234
|
-
"
|
|
235
|
-
"node_modules/
|
|
239
|
+
"strip-ansi@7.1.2": [
|
|
240
|
+
"node_modules/strip-ansi"
|
|
236
241
|
],
|
|
237
|
-
"
|
|
238
|
-
"node_modules/
|
|
242
|
+
"string-width@5.1.2": [
|
|
243
|
+
"node_modules/string-width"
|
|
239
244
|
],
|
|
240
|
-
"
|
|
241
|
-
"node_modules/
|
|
245
|
+
"balanced-match@4.0.4": [
|
|
246
|
+
"node_modules/balanced-match"
|
|
242
247
|
],
|
|
243
|
-
"
|
|
244
|
-
"node_modules/
|
|
248
|
+
"shebang-regex@3.0.0": [
|
|
249
|
+
"node_modules/shebang-regex"
|
|
245
250
|
],
|
|
246
|
-
"
|
|
247
|
-
"node_modules/
|
|
251
|
+
"ansi-styles@6.2.3": [
|
|
252
|
+
"node_modules/ansi-styles"
|
|
248
253
|
],
|
|
249
254
|
"is-fullwidth-code-point@3.0.0": [
|
|
250
255
|
"node_modules/is-fullwidth-code-point"
|
|
251
256
|
],
|
|
252
|
-
"ansi-styles@6.2.3": [
|
|
253
|
-
"node_modules/ansi-styles"
|
|
254
|
-
],
|
|
255
257
|
"color-convert@2.0.1": [
|
|
256
258
|
"node_modules/color-convert"
|
|
257
259
|
],
|
|
258
|
-
"
|
|
259
|
-
"node_modules/
|
|
260
|
+
"ansi-regex@6.2.2": [
|
|
261
|
+
"node_modules/ansi-regex"
|
|
260
262
|
],
|
|
261
|
-
"
|
|
262
|
-
"node_modules/
|
|
263
|
+
"eastasianwidth@0.2.0": [
|
|
264
|
+
"node_modules/eastasianwidth"
|
|
265
|
+
],
|
|
266
|
+
"emoji-regex@9.2.2": [
|
|
267
|
+
"node_modules/emoji-regex"
|
|
263
268
|
],
|
|
264
269
|
"color-name@1.1.4": [
|
|
265
270
|
"node_modules/color-name"
|
|
266
271
|
],
|
|
267
|
-
"node-gyp@11.5.0": [
|
|
268
|
-
"node_modules/node-gyp"
|
|
269
|
-
],
|
|
270
|
-
"tar@7.5.9": [
|
|
271
|
-
"node_modules/tar"
|
|
272
|
-
],
|
|
273
272
|
"minipass-flush@1.0.5": [
|
|
274
273
|
"node_modules/minipass-flush"
|
|
275
274
|
],
|
|
@@ -279,15 +278,18 @@
|
|
|
279
278
|
"minipass-sized@1.0.3": [
|
|
280
279
|
"node_modules/minipass-sized"
|
|
281
280
|
],
|
|
281
|
+
"cross-spawn@7.0.6": [
|
|
282
|
+
"node_modules/cross-spawn"
|
|
283
|
+
],
|
|
282
284
|
"wrap-ansi@7.0.0": [
|
|
283
285
|
"node_modules/wrap-ansi-cjs"
|
|
284
286
|
]
|
|
285
287
|
},
|
|
286
288
|
"nodeLinker": "hoisted",
|
|
287
|
-
"packageManager": "pnpm@10.30.
|
|
289
|
+
"packageManager": "pnpm@10.30.1",
|
|
288
290
|
"pendingBuilds": [],
|
|
289
291
|
"publicHoistPattern": [],
|
|
290
|
-
"prunedAt": "
|
|
292
|
+
"prunedAt": "Mon, 23 Feb 2026 23:54:27 GMT",
|
|
291
293
|
"registries": {
|
|
292
294
|
"default": "https://registry.npmjs.org/",
|
|
293
295
|
"@jsr": "https://npm.jsr.io/"
|
|
@@ -19,7 +19,7 @@ overrides:
|
|
|
19
19
|
isexe@3: 3.1.1
|
|
20
20
|
istanbul-reports: npm:@zkochan/istanbul-reports
|
|
21
21
|
js-yaml@<3.14.2: ^3.14.2
|
|
22
|
-
js-yaml@^4.0.0: npm:@zkochan/js-yaml@0.0.
|
|
22
|
+
js-yaml@^4.0.0: npm:@zkochan/js-yaml@0.0.11
|
|
23
23
|
json5@<2.2.2: ^2.2.3
|
|
24
24
|
jsonwebtoken@<=8.5.1: '>=9.0.0'
|
|
25
25
|
jws@<3.2.3: ^3.2.3
|
|
@@ -97,11 +97,13 @@ packages:
|
|
|
97
97
|
resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==}
|
|
98
98
|
engines: {node: '>=12'}
|
|
99
99
|
|
|
100
|
-
balanced-match@
|
|
101
|
-
resolution: {integrity: sha512-
|
|
100
|
+
balanced-match@4.0.4:
|
|
101
|
+
resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}
|
|
102
|
+
engines: {node: 18 || 20 || >=22}
|
|
102
103
|
|
|
103
|
-
brace-expansion@
|
|
104
|
-
resolution: {integrity: sha512-
|
|
104
|
+
brace-expansion@5.0.3:
|
|
105
|
+
resolution: {integrity: sha512-fy6KJm2RawA5RcHkLa1z/ScpBeA762UF9KmZQxwIbDtRJrgLzM10depAiEQ+CXYcoiqW1/m96OAAoke2nE9EeA==}
|
|
106
|
+
engines: {node: 18 || 20 || >=22}
|
|
105
107
|
|
|
106
108
|
cacache@19.0.1:
|
|
107
109
|
resolution: {integrity: sha512-hdsUxulXCi5STId78vRVYEtDAjq99ICAUktLTeTYsLoTE6Z8dS0c8pWNCxwdrk9YfJeobDZc2Y186hD/5ZQgFQ==}
|
|
@@ -222,8 +224,8 @@ packages:
|
|
|
222
224
|
resolution: {integrity: sha512-QMjGbFTP0blj97EeidG5hk/QhKQ3T4ICckQGLgz38QF7Vgbk6e6FTARN8KhKxyBbWn8R0HU+bnw8aSoFPD4qtQ==}
|
|
223
225
|
engines: {node: ^18.17.0 || >=20.5.0}
|
|
224
226
|
|
|
225
|
-
minimatch@9.0.
|
|
226
|
-
resolution: {integrity: sha512-
|
|
227
|
+
minimatch@9.0.6:
|
|
228
|
+
resolution: {integrity: sha512-kQAVowdR33euIqeA0+VZTDqU+qo1IeVY+hrKYtZMio3Pg0P0vuh/kwRylLUddJhB6pf3q/botcOvRtx4IN1wqQ==}
|
|
227
229
|
engines: {node: '>=16 || 14 >=14.17'}
|
|
228
230
|
|
|
229
231
|
minipass-collect@2.0.1:
|
|
@@ -458,12 +460,12 @@ snapshots:
|
|
|
458
460
|
ansi-styles@6.2.3:
|
|
459
461
|
optional: true
|
|
460
462
|
|
|
461
|
-
balanced-match@
|
|
463
|
+
balanced-match@4.0.4:
|
|
462
464
|
optional: true
|
|
463
465
|
|
|
464
|
-
brace-expansion@
|
|
466
|
+
brace-expansion@5.0.3:
|
|
465
467
|
dependencies:
|
|
466
|
-
balanced-match:
|
|
468
|
+
balanced-match: 4.0.4
|
|
467
469
|
optional: true
|
|
468
470
|
|
|
469
471
|
cacache@19.0.1:
|
|
@@ -548,7 +550,7 @@ snapshots:
|
|
|
548
550
|
dependencies:
|
|
549
551
|
foreground-child: 3.3.1
|
|
550
552
|
jackspeak: 3.4.3
|
|
551
|
-
minimatch: 9.0.
|
|
553
|
+
minimatch: 9.0.6
|
|
552
554
|
minipass: 7.1.3
|
|
553
555
|
package-json-from-dist: 1.0.1
|
|
554
556
|
path-scurry: 1.11.1
|
|
@@ -623,9 +625,9 @@ snapshots:
|
|
|
623
625
|
- supports-color
|
|
624
626
|
optional: true
|
|
625
627
|
|
|
626
|
-
minimatch@9.0.
|
|
628
|
+
minimatch@9.0.6:
|
|
627
629
|
dependencies:
|
|
628
|
-
brace-expansion:
|
|
630
|
+
brace-expansion: 5.0.3
|
|
629
631
|
optional: true
|
|
630
632
|
|
|
631
633
|
minipass-collect@2.0.1:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GACnB,GAAG,MAAM,GAAG,MAAM,EAClB,GAAG,MAAM,GAAG,MAAM,EAClB,KAAK,MAAM;;;;;;aAgBZ,CAAA;AAOD,eAAO,MAAM,KAAK,GAChB,GAAG,MAAM,EACT,GAAG,MAAM,EACT,KAAK,MAAM,KACV,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CA2C7B,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.range = exports.balanced = void 0;
|
|
4
|
+
const balanced = (a, b, str) => {
|
|
5
|
+
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
|
6
|
+
const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
|
|
7
|
+
const r = ma !== null && mb != null && (0, exports.range)(ma, mb, str);
|
|
8
|
+
return (r && {
|
|
9
|
+
start: r[0],
|
|
10
|
+
end: r[1],
|
|
11
|
+
pre: str.slice(0, r[0]),
|
|
12
|
+
body: str.slice(r[0] + ma.length, r[1]),
|
|
13
|
+
post: str.slice(r[1] + mb.length),
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
exports.balanced = balanced;
|
|
17
|
+
const maybeMatch = (reg, str) => {
|
|
18
|
+
const m = str.match(reg);
|
|
19
|
+
return m ? m[0] : null;
|
|
20
|
+
};
|
|
21
|
+
const range = (a, b, str) => {
|
|
22
|
+
let begs, beg, left, right = undefined, result;
|
|
23
|
+
let ai = str.indexOf(a);
|
|
24
|
+
let bi = str.indexOf(b, ai + 1);
|
|
25
|
+
let i = ai;
|
|
26
|
+
if (ai >= 0 && bi > 0) {
|
|
27
|
+
if (a === b) {
|
|
28
|
+
return [ai, bi];
|
|
29
|
+
}
|
|
30
|
+
begs = [];
|
|
31
|
+
left = str.length;
|
|
32
|
+
while (i >= 0 && !result) {
|
|
33
|
+
if (i === ai) {
|
|
34
|
+
begs.push(i);
|
|
35
|
+
ai = str.indexOf(a, i + 1);
|
|
36
|
+
}
|
|
37
|
+
else if (begs.length === 1) {
|
|
38
|
+
const r = begs.pop();
|
|
39
|
+
if (r !== undefined)
|
|
40
|
+
result = [r, bi];
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
beg = begs.pop();
|
|
44
|
+
if (beg !== undefined && beg < left) {
|
|
45
|
+
left = beg;
|
|
46
|
+
right = bi;
|
|
47
|
+
}
|
|
48
|
+
bi = str.indexOf(b, i + 1);
|
|
49
|
+
}
|
|
50
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
51
|
+
}
|
|
52
|
+
if (begs.length && right !== undefined) {
|
|
53
|
+
result = [left, right];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return result;
|
|
57
|
+
};
|
|
58
|
+
exports.range = range;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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","sourcesContent":["export const balanced = (\n a: string | RegExp,\n b: string | RegExp,\n str: string,\n) => {\n const ma = a instanceof RegExp ? maybeMatch(a, str) : a\n const mb = b instanceof RegExp ? maybeMatch(b, str) : b\n\n const r = ma !== null && mb != null && range(ma, mb, str)\n\n return (\n r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + ma.length, r[1]),\n post: str.slice(r[1] + mb.length),\n }\n )\n}\n\nconst maybeMatch = (reg: RegExp, str: string) => {\n const m = str.match(reg)\n return m ? m[0] : null\n}\n\nexport const range = (\n a: string,\n b: string,\n str: string,\n): undefined | [number, number] => {\n let begs: number[],\n beg: number | undefined,\n left: number,\n right: number | undefined = undefined,\n result: undefined | [number, number]\n let ai = str.indexOf(a)\n let bi = str.indexOf(b, ai + 1)\n let i = ai\n\n if (ai >= 0 && bi > 0) {\n if (a === b) {\n return [ai, bi]\n }\n begs = []\n left = str.length\n\n while (i >= 0 && !result) {\n if (i === ai) {\n begs.push(i)\n ai = str.indexOf(a, i + 1)\n } else if (begs.length === 1) {\n const r = begs.pop()\n if (r !== undefined) result = [r, bi]\n } else {\n beg = begs.pop()\n if (beg !== undefined && beg < left) {\n left = beg\n right = bi\n }\n\n bi = str.indexOf(b, i + 1)\n }\n\n i = ai < bi && ai >= 0 ? ai : bi\n }\n\n if (begs.length && right !== undefined) {\n result = [left, right]\n }\n }\n\n return result\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GACnB,GAAG,MAAM,GAAG,MAAM,EAClB,GAAG,MAAM,GAAG,MAAM,EAClB,KAAK,MAAM;;;;;;aAgBZ,CAAA;AAOD,eAAO,MAAM,KAAK,GAChB,GAAG,MAAM,EACT,GAAG,MAAM,EACT,KAAK,MAAM,KACV,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CA2C7B,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export const balanced = (a, b, str) => {
|
|
2
|
+
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
|
3
|
+
const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
|
|
4
|
+
const r = ma !== null && mb != null && range(ma, mb, str);
|
|
5
|
+
return (r && {
|
|
6
|
+
start: r[0],
|
|
7
|
+
end: r[1],
|
|
8
|
+
pre: str.slice(0, r[0]),
|
|
9
|
+
body: str.slice(r[0] + ma.length, r[1]),
|
|
10
|
+
post: str.slice(r[1] + mb.length),
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
const maybeMatch = (reg, str) => {
|
|
14
|
+
const m = str.match(reg);
|
|
15
|
+
return m ? m[0] : null;
|
|
16
|
+
};
|
|
17
|
+
export const range = (a, b, str) => {
|
|
18
|
+
let begs, beg, left, right = undefined, result;
|
|
19
|
+
let ai = str.indexOf(a);
|
|
20
|
+
let bi = str.indexOf(b, ai + 1);
|
|
21
|
+
let i = ai;
|
|
22
|
+
if (ai >= 0 && bi > 0) {
|
|
23
|
+
if (a === b) {
|
|
24
|
+
return [ai, bi];
|
|
25
|
+
}
|
|
26
|
+
begs = [];
|
|
27
|
+
left = str.length;
|
|
28
|
+
while (i >= 0 && !result) {
|
|
29
|
+
if (i === ai) {
|
|
30
|
+
begs.push(i);
|
|
31
|
+
ai = str.indexOf(a, i + 1);
|
|
32
|
+
}
|
|
33
|
+
else if (begs.length === 1) {
|
|
34
|
+
const r = begs.pop();
|
|
35
|
+
if (r !== undefined)
|
|
36
|
+
result = [r, bi];
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
beg = begs.pop();
|
|
40
|
+
if (beg !== undefined && beg < left) {
|
|
41
|
+
left = beg;
|
|
42
|
+
right = bi;
|
|
43
|
+
}
|
|
44
|
+
bi = str.indexOf(b, i + 1);
|
|
45
|
+
}
|
|
46
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
47
|
+
}
|
|
48
|
+
if (begs.length && right !== undefined) {
|
|
49
|
+
result = [left, right];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return result;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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","sourcesContent":["export const balanced = (\n a: string | RegExp,\n b: string | RegExp,\n str: string,\n) => {\n const ma = a instanceof RegExp ? maybeMatch(a, str) : a\n const mb = b instanceof RegExp ? maybeMatch(b, str) : b\n\n const r = ma !== null && mb != null && range(ma, mb, str)\n\n return (\n r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + ma.length, r[1]),\n post: str.slice(r[1] + mb.length),\n }\n )\n}\n\nconst maybeMatch = (reg: RegExp, str: string) => {\n const m = str.match(reg)\n return m ? m[0] : null\n}\n\nexport const range = (\n a: string,\n b: string,\n str: string,\n): undefined | [number, number] => {\n let begs: number[],\n beg: number | undefined,\n left: number,\n right: number | undefined = undefined,\n result: undefined | [number, number]\n let ai = str.indexOf(a)\n let bi = str.indexOf(b, ai + 1)\n let i = ai\n\n if (ai >= 0 && bi > 0) {\n if (a === b) {\n return [ai, bi]\n }\n begs = []\n left = str.length\n\n while (i >= 0 && !result) {\n if (i === ai) {\n begs.push(i)\n ai = str.indexOf(a, i + 1)\n } else if (begs.length === 1) {\n const r = begs.pop()\n if (r !== undefined) result = [r, bi]\n } else {\n beg = begs.pop()\n if (beg !== undefined && beg < left) {\n left = beg\n right = bi\n }\n\n bi = str.indexOf(b, i + 1)\n }\n\n i = ai < bi && ai >= 0 ? ai : bi\n }\n\n if (begs.length && right !== undefined) {\n result = [left, right]\n }\n }\n\n return result\n}\n"]}
|