@vorplex/compiler 0.0.21 → 0.0.23
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/npm/npm.util.js +1 -3
- package/package.json +4 -4
package/dist/npm/npm.util.js
CHANGED
|
@@ -116,9 +116,7 @@ export class NPM {
|
|
|
116
116
|
return Array.from(script.matchAll(/import\s+[\s\S]*?\s+from\s+['"]([^'"]+)['"]|require\(['"]([^'"]+)['"]\)/g)).map((match) => match[1] ?? match[2]);
|
|
117
117
|
}
|
|
118
118
|
static parseImportString(string) {
|
|
119
|
-
|
|
120
|
-
throw new Error('Invalid import string');
|
|
121
|
-
const match = string.match(/^(?<packageName>(?:@[\w-]+\/[\w-]+|[\w-]+))(?:\/(?<subpath>.+?))?(?:\/?@(?<version>\d+(?:\.\d+)*(?:-[\w.]+)?(?:\+[\w.]+)?))?$/);
|
|
119
|
+
const match = string.match(/^(?<packageName>(?:@[\w.-]+\/[\w.-]+|[\w.-]+))(?:\/(?<subpath>.+?))?(?:\/?@(?<version>\d+(?:\.\d+)*(?:-[\w.]+)?(?:\+[\w.]+)?))?$/);
|
|
122
120
|
if (!match)
|
|
123
121
|
throw new Error(`Invalid import string (${string})`);
|
|
124
122
|
return match?.groups;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vorplex/compiler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@vorplex/core": "0.0.21",
|
|
19
|
-
"semver": "7.7.3",
|
|
20
|
-
"tslib": "2.8.1",
|
|
21
18
|
"esbuild-wasm": "0.25.12",
|
|
19
|
+
"tslib": "2.8.1",
|
|
22
20
|
"typescript": "5.9.3",
|
|
21
|
+
"@vorplex/core": "0.0.23",
|
|
22
|
+
"semver": "7.7.3",
|
|
23
23
|
"yaml": "2.8.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|