@nudojs/parser 1.5.3 → 1.5.4
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/index.js +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -868,6 +868,8 @@ function parseSinonExpr(expr) {
|
|
|
868
868
|
if (arrowFn) {
|
|
869
869
|
return {
|
|
870
870
|
type: "stub",
|
|
871
|
+
// 严格性不可得:mock 表达式是**独立解析的载荷文本**,enclosing 源
|
|
872
|
+
// 文件的 ESM/CJS 种类未随指令流转 ⇒ 不写 strict(sloppy,保守)。
|
|
871
873
|
returnValue: absFunction2(arrowFn.params, {
|
|
872
874
|
body: arrowFn.body
|
|
873
875
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nudojs/parser",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"registry": "https://registry.npmjs.org"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@nudojs/core": "1.
|
|
42
|
+
"@nudojs/core": "1.17.0",
|
|
43
43
|
"@babel/types": "^8.0.6"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|