@m2c2kit/build-helpers 0.3.10 → 0.3.11

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -11212,7 +11212,7 @@ function parse(input, options) {
11212
11212
  return Parser.parse(input, options)
11213
11213
  }
11214
11214
 
11215
- // AST walker module for Mozilla Parser API compatible trees
11215
+ // AST walker module for ESTree compatible trees
11216
11216
 
11217
11217
 
11218
11218
  // An ancestor walk keeps an array of ancestor nodes (including the
@@ -11222,11 +11222,11 @@ function ancestor(node, visitors, baseVisitor, state, override) {
11222
11222
  var ancestors = [];
11223
11223
  if (!baseVisitor) { baseVisitor = base
11224
11224
  ; }(function c(node, st, override) {
11225
- var type = override || node.type, found = visitors[type];
11225
+ var type = override || node.type;
11226
11226
  var isNew = node !== ancestors[ancestors.length - 1];
11227
11227
  if (isNew) { ancestors.push(node); }
11228
11228
  baseVisitor[type](node, st, c);
11229
- if (found) { found(node, st || ancestors, ancestors); }
11229
+ if (visitors[type]) { visitors[type](node, st || ancestors, ancestors); }
11230
11230
  if (isNew) { ancestors.pop(); }
11231
11231
  })(node, state, override);
11232
11232
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m2c2kit/build-helpers",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "Utility functions for building m2c2kit apps",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -17,11 +17,11 @@
17
17
  "cpy": "10.1.0",
18
18
  "findup-sync": "5.0.0",
19
19
  "rimraf": "5.0.5",
20
- "rollup": "4.6.1",
20
+ "rollup": "4.8.0",
21
21
  "rollup-plugin-copy": "3.5.0",
22
22
  "rollup-plugin-dts": "6.1.0",
23
23
  "rollup-plugin-esbuild": "6.1.0",
24
- "typescript": "5.3.2"
24
+ "typescript": "5.3.3"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "npm run clean && tsc && rollup -c",
@@ -41,7 +41,7 @@
41
41
  "homepage": "https://m2c2-project.github.io/m2c2kit",
42
42
  "dependencies": {
43
43
  "acorn": "8.11.2",
44
- "acorn-walk": "8.3.0",
44
+ "acorn-walk": "8.3.1",
45
45
  "astring": "1.8.6",
46
46
  "css-select": "5.1.0",
47
47
  "dom-serializer": "2.0.0",