@rsdoctor/utils 1.0.0-alpha.0 → 1.0.0-alpha.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/README.md
CHANGED
|
@@ -32,12 +32,12 @@ __export(parser_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(parser_exports);
|
|
34
34
|
var import_acorn = require("acorn");
|
|
35
|
-
var
|
|
35
|
+
var import_acorn_import_attributes = require("acorn-import-attributes");
|
|
36
36
|
var walk = __toESM(require("acorn-walk"));
|
|
37
37
|
var import_asserts = require("./asserts");
|
|
38
38
|
var utils = __toESM(require("./utils"));
|
|
39
|
-
const acornParserInternal = import_acorn.Parser.extend(
|
|
40
|
-
let acornParserExport = import_acorn.Parser.extend(
|
|
39
|
+
const acornParserInternal = import_acorn.Parser.extend(import_acorn_import_attributes.importAttributes);
|
|
40
|
+
let acornParserExport = import_acorn.Parser.extend(import_acorn_import_attributes.importAttributes);
|
|
41
41
|
const parser = {
|
|
42
42
|
/** AST iterator */
|
|
43
43
|
walk,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Parser as AcornParser } from "acorn";
|
|
2
|
-
import {
|
|
2
|
+
import { importAttributes } from "acorn-import-attributes";
|
|
3
3
|
import * as walk from "acorn-walk";
|
|
4
4
|
import { asserts } from "./asserts";
|
|
5
5
|
import * as utils from "./utils";
|
|
6
|
-
const acornParserInternal = AcornParser.extend(
|
|
7
|
-
let acornParserExport = AcornParser.extend(
|
|
6
|
+
const acornParserInternal = AcornParser.extend(importAttributes);
|
|
7
|
+
let acornParserExport = AcornParser.extend(importAttributes);
|
|
8
8
|
const parser = {
|
|
9
9
|
/** AST iterator */
|
|
10
10
|
walk,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/data/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,GAAG,EAAE,QAAQ,EAAa,M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E,CAAC,SACC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAEzE,GAAG,IAAI,EAAE,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,GACrD,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAmU/C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/utils",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@babel/code-frame": "7.26.2",
|
|
71
71
|
"@types/estree": "1.0.5",
|
|
72
72
|
"acorn": "^8.10.0",
|
|
73
|
-
"acorn-import-
|
|
73
|
+
"acorn-import-attributes": "^1.9.5",
|
|
74
74
|
"acorn-walk": "8.3.4",
|
|
75
75
|
"chalk": "^4.1.2",
|
|
76
76
|
"connect": "3.7.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"lines-and-columns": "2.0.4",
|
|
84
84
|
"rslog": "^1.2.3",
|
|
85
85
|
"strip-ansi": "^6.0.1",
|
|
86
|
-
"@rsdoctor/types": "1.0.0-alpha.
|
|
86
|
+
"@rsdoctor/types": "1.0.0-alpha.2"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@types/babel__code-frame": "7.0.6",
|