requirejs-esm 1.0.1 → 1.0.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/dist/plugin.js CHANGED
@@ -1039,9 +1039,9 @@
1039
1039
  mask |= 8;
1040
1040
  break;
1041
1041
  case 115:
1042
- if (mask & 12)
1042
+ if (mask & 32)
1043
1043
  report(parser, 34, 's');
1044
- mask |= 12;
1044
+ mask |= 32;
1045
1045
  break;
1046
1046
  default:
1047
1047
  report(parser, 33);
@@ -1954,7 +1954,7 @@
1954
1954
  }
1955
1955
  else if (ch === 61) {
1956
1956
  advanceChar(parser);
1957
- return 8456000;
1957
+ return 8456256;
1958
1958
  }
1959
1959
  if (ch === 33) {
1960
1960
  const index = parser.index + 1;
@@ -2137,7 +2137,7 @@
2137
2137
  const ch = parser.currentChar;
2138
2138
  if (ch === 61) {
2139
2139
  advanceChar(parser);
2140
- return 8456001;
2140
+ return 8456257;
2141
2141
  }
2142
2142
  if (ch !== 62)
2143
2143
  return 8456259;
@@ -5129,7 +5129,7 @@
5129
5129
  nextToken(parser, context | 32768);
5130
5130
  const argument = parser.flags & 1 || parser.token & 1048576
5131
5131
  ? null
5132
- : parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.line, parser.column);
5132
+ : parseExpressions(parser, context, 0, 1, parser.tokenPos, parser.linePos, parser.colPos);
5133
5133
  matchOrInsertSemicolon(parser, context | 32768);
5134
5134
  return finishNode(parser, context, start, line, column, {
5135
5135
  type: 'ReturnStatement',
@@ -6245,7 +6245,7 @@
6245
6245
  if ((context & 524288) < 1)
6246
6246
  report(parser, 26);
6247
6247
  if (context & 16384)
6248
- report(parser, 143);
6248
+ report(parser, 27);
6249
6249
  parser.assignable = 2;
6250
6250
  break;
6251
6251
  }
@@ -6254,7 +6254,7 @@
6254
6254
  if ((context & 262144) < 1)
6255
6255
  report(parser, 27);
6256
6256
  if (context & 16384)
6257
- report(parser, 143);
6257
+ report(parser, 27);
6258
6258
  parser.assignable = 1;
6259
6259
  break;
6260
6260
  }
@@ -6285,10 +6285,10 @@
6285
6285
  expr = parseUpdateExpression(parser, context, expr, start, line, column);
6286
6286
  }
6287
6287
  else if ((parser.token & 67108864) === 67108864) {
6288
- context = (context | 134217728 | 8192) ^ (134217728 | 8192);
6288
+ context = (context | 134217728) ^ 134217728;
6289
6289
  switch (parser.token) {
6290
6290
  case 67108877: {
6291
- nextToken(parser, context | 1073741824);
6291
+ nextToken(parser, (context | 1073741824 | 8192) ^ 8192);
6292
6292
  parser.assignable = 1;
6293
6293
  const property = parsePropertyOrPrivatePropertyName(parser, context);
6294
6294
  expr = finishNode(parser, context, start, line, column, {
@@ -6344,7 +6344,7 @@
6344
6344
  break;
6345
6345
  }
6346
6346
  case 67108991: {
6347
- nextToken(parser, context);
6347
+ nextToken(parser, (context | 1073741824 | 8192) ^ 8192);
6348
6348
  parser.flags |= 2048;
6349
6349
  parser.assignable = 2;
6350
6350
  expr = parseOptionalChain(parser, context, expr, start, line, column);
@@ -8508,12 +8508,10 @@
8508
8508
  }
8509
8509
  else if (context & 1 && parser.token === 131) {
8510
8510
  kind |= 4096;
8511
- key = parsePrivateIdentifier(parser, context, tokenPos, linePos, colPos);
8512
- context = context | 16384;
8511
+ key = parsePrivateIdentifier(parser, context | 16384, tokenPos, linePos, colPos);
8513
8512
  }
8514
8513
  else if (context & 1 && (parser.token & 1073741824) === 1073741824) {
8515
8514
  kind |= 128;
8516
- context = context | 16384;
8517
8515
  }
8518
8516
  else if (token === 122) {
8519
8517
  key = parseIdentifier(parser, context, 0);
@@ -8879,7 +8877,7 @@
8879
8877
  });
8880
8878
  }
8881
8879
  function parseJSXExpressionContainer(parser, context, inJSXChild, isAttr, start, line, column) {
8882
- nextToken(parser, context);
8880
+ nextToken(parser, context | 32768);
8883
8881
  const { tokenPos, linePos, colPos } = parser;
8884
8882
  if (parser.token === 14)
8885
8883
  return parseJSXSpreadChild(parser, context, tokenPos, linePos, colPos);
@@ -81781,6 +81779,9 @@
81781
81779
  });
81782
81780
 
81783
81781
  obj[impl][utils$1.wrapperSymbol] = obj;
81782
+ if (Impl.init) {
81783
+ Impl.init(obj[impl], privateData);
81784
+ }
81784
81785
  return obj;
81785
81786
  },
81786
81787
  interface: URLSearchParams,
@@ -82332,6 +82333,9 @@
82332
82333
  });
82333
82334
 
82334
82335
  obj[impl][utils$1.wrapperSymbol] = obj;
82336
+ if (Impl.init) {
82337
+ Impl.init(obj[impl], privateData);
82338
+ }
82335
82339
  return obj;
82336
82340
  },
82337
82341
  interface: URL,