@m2c2kit/build-helpers 0.3.10 → 0.3.12

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 +12 -11
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -8194,12 +8194,14 @@ pp$5.parseExprImport = function(forNew) {
8194
8194
  // Consume `import` as an identifier for `import.meta`.
8195
8195
  // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.
8196
8196
  if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); }
8197
- var meta = this.parseIdent(true);
8197
+ this.next();
8198
8198
 
8199
8199
  if (this.type === types$1.parenL && !forNew) {
8200
8200
  return this.parseDynamicImport(node)
8201
8201
  } else if (this.type === types$1.dot) {
8202
- node.meta = meta;
8202
+ var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
8203
+ meta.name = "import";
8204
+ node.meta = this.finishNode(meta, "Identifier");
8203
8205
  return this.parseImportMeta(node)
8204
8206
  } else {
8205
8207
  this.unexpected();
@@ -8349,7 +8351,7 @@ pp$5.parseNew = function() {
8349
8351
  var node = this.startNode();
8350
8352
  this.next();
8351
8353
  if (this.options.ecmaVersion >= 6 && this.type === types$1.dot) {
8352
- var meta = this.startNodeAt(node.start, node.startLoc);
8354
+ var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
8353
8355
  meta.name = "new";
8354
8356
  node.meta = this.finishNode(meta, "Identifier");
8355
8357
  this.next();
@@ -11177,7 +11179,7 @@ pp.readWord = function() {
11177
11179
  // [walk]: util/walk.js
11178
11180
 
11179
11181
 
11180
- var version = "8.11.2";
11182
+ var version = "8.11.3";
11181
11183
 
11182
11184
  Parser.acorn = {
11183
11185
  Parser: Parser,
@@ -11202,17 +11204,16 @@ Parser.acorn = {
11202
11204
  };
11203
11205
 
11204
11206
  // The main exported interface (under `self.acorn` when in the
11205
- // browser) is a `parse` function that takes a code string and
11206
- // returns an abstract syntax tree as specified by [Mozilla parser
11207
- // API][api].
11207
+ // browser) is a `parse` function that takes a code string and returns
11208
+ // an abstract syntax tree as specified by the [ESTree spec][estree].
11208
11209
  //
11209
- // [api]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
11210
+ // [estree]: https://github.com/estree/estree
11210
11211
 
11211
11212
  function parse(input, options) {
11212
11213
  return Parser.parse(input, options)
11213
11214
  }
11214
11215
 
11215
- // AST walker module for Mozilla Parser API compatible trees
11216
+ // AST walker module for ESTree compatible trees
11216
11217
 
11217
11218
 
11218
11219
  // An ancestor walk keeps an array of ancestor nodes (including the
@@ -11222,11 +11223,11 @@ function ancestor(node, visitors, baseVisitor, state, override) {
11222
11223
  var ancestors = [];
11223
11224
  if (!baseVisitor) { baseVisitor = base
11224
11225
  ; }(function c(node, st, override) {
11225
- var type = override || node.type, found = visitors[type];
11226
+ var type = override || node.type;
11226
11227
  var isNew = node !== ancestors[ancestors.length - 1];
11227
11228
  if (isNew) { ancestors.push(node); }
11228
11229
  baseVisitor[type](node, st, c);
11229
- if (found) { found(node, st || ancestors, ancestors); }
11230
+ if (visitors[type]) { visitors[type](node, st || ancestors, ancestors); }
11230
11231
  if (isNew) { ancestors.pop(); }
11231
11232
  })(node, state, override);
11232
11233
  }
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.12",
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.9.2",
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",
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "homepage": "https://m2c2-project.github.io/m2c2kit",
42
42
  "dependencies": {
43
- "acorn": "8.11.2",
44
- "acorn-walk": "8.3.0",
43
+ "acorn": "8.11.3",
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",