esrap 1.1.1 → 1.2.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.
- package/README.md +1 -1
- package/package.json +3 -2
- package/src/handlers.js +621 -794
- package/src/index.js +80 -26
- package/src/types.d.ts +33 -3
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ If the nodes of the input AST have `loc` properties (e.g. the AST was generated
|
|
|
38
38
|
You can pass information that will be added to the resulting sourcemap (note that the AST is assumed to come from a single file):
|
|
39
39
|
|
|
40
40
|
```js
|
|
41
|
-
const { code, map } =
|
|
41
|
+
const { code, map } = print(ast, {
|
|
42
42
|
sourceMapSource: 'input.js',
|
|
43
43
|
sourceMapContent: fs.readFileSync('input.js', 'utf-8')
|
|
44
44
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esrap",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Parse in reverse",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"check": "tsc",
|
|
31
|
-
"prepublishOnly": "bun test && dts-buddy"
|
|
31
|
+
"prepublishOnly": "bun test && dts-buddy",
|
|
32
|
+
"sandbox": "bun run test/sandbox/index.js"
|
|
32
33
|
},
|
|
33
34
|
"license": "MIT",
|
|
34
35
|
"dependencies": {
|