@vue/shared 3.2.17 → 3.2.21

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.
@@ -362,12 +362,12 @@ function escapeHtml(string) {
362
362
  continue;
363
363
  }
364
364
  if (lastIndex !== index) {
365
- html += str.substring(lastIndex, index);
365
+ html += str.slice(lastIndex, index);
366
366
  }
367
367
  lastIndex = index + 1;
368
368
  html += escaped;
369
369
  }
370
- return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
370
+ return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
371
371
  }
372
372
  // https://www.w3.org/TR/html52/syntax.html#comments
373
373
  const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
@@ -462,17 +462,6 @@ const replacer = (_key, val) => {
462
462
  return val;
463
463
  };
464
464
 
465
- /**
466
- * List of @babel/parser plugins that are used for template expression
467
- * transforms and SFC script transforms. By default we enable proposals slated
468
- * for ES2020. This will need to be updated as the spec moves forward.
469
- * Full list at https://babeljs.io/docs/en/next/babel-parser#plugins
470
- */
471
- const babelParserDefaultPlugins = [
472
- 'bigInt',
473
- 'optionalChaining',
474
- 'nullishCoalescingOperator'
475
- ];
476
465
  const EMPTY_OBJ = Object.freeze({})
477
466
  ;
478
467
  const EMPTY_ARR = Object.freeze([]) ;
@@ -586,7 +575,6 @@ exports.EMPTY_OBJ = EMPTY_OBJ;
586
575
  exports.NO = NO;
587
576
  exports.NOOP = NOOP;
588
577
  exports.PatchFlagNames = PatchFlagNames;
589
- exports.babelParserDefaultPlugins = babelParserDefaultPlugins;
590
578
  exports.camelize = camelize;
591
579
  exports.capitalize = capitalize;
592
580
  exports.def = def;
@@ -362,12 +362,12 @@ function escapeHtml(string) {
362
362
  continue;
363
363
  }
364
364
  if (lastIndex !== index) {
365
- html += str.substring(lastIndex, index);
365
+ html += str.slice(lastIndex, index);
366
366
  }
367
367
  lastIndex = index + 1;
368
368
  html += escaped;
369
369
  }
370
- return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
370
+ return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
371
371
  }
372
372
  // https://www.w3.org/TR/html52/syntax.html#comments
373
373
  const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
@@ -462,17 +462,6 @@ const replacer = (_key, val) => {
462
462
  return val;
463
463
  };
464
464
 
465
- /**
466
- * List of @babel/parser plugins that are used for template expression
467
- * transforms and SFC script transforms. By default we enable proposals slated
468
- * for ES2020. This will need to be updated as the spec moves forward.
469
- * Full list at https://babeljs.io/docs/en/next/babel-parser#plugins
470
- */
471
- const babelParserDefaultPlugins = [
472
- 'bigInt',
473
- 'optionalChaining',
474
- 'nullishCoalescingOperator'
475
- ];
476
465
  const EMPTY_OBJ = {};
477
466
  const EMPTY_ARR = [];
478
467
  const NOOP = () => { };
@@ -585,7 +574,6 @@ exports.EMPTY_OBJ = EMPTY_OBJ;
585
574
  exports.NO = NO;
586
575
  exports.NOOP = NOOP;
587
576
  exports.PatchFlagNames = PatchFlagNames;
588
- exports.babelParserDefaultPlugins = babelParserDefaultPlugins;
589
577
  exports.camelize = camelize;
590
578
  exports.capitalize = capitalize;
591
579
  exports.def = def;
package/dist/shared.d.ts CHANGED
@@ -1,11 +1,3 @@
1
- /**
2
- * List of @babel/parser plugins that are used for template expression
3
- * transforms and SFC script transforms. By default we enable proposals slated
4
- * for ES2020. This will need to be updated as the spec moves forward.
5
- * Full list at https://babeljs.io/docs/en/next/babel-parser#plugins
6
- */
7
- export declare const babelParserDefaultPlugins: readonly ["bigInt", "optionalChaining", "nullishCoalescingOperator"];
8
-
9
1
  /**
10
2
  * @private
11
3
  */
@@ -358,12 +358,12 @@ function escapeHtml(string) {
358
358
  continue;
359
359
  }
360
360
  if (lastIndex !== index) {
361
- html += str.substring(lastIndex, index);
361
+ html += str.slice(lastIndex, index);
362
362
  }
363
363
  lastIndex = index + 1;
364
364
  html += escaped;
365
365
  }
366
- return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
366
+ return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
367
367
  }
368
368
  // https://www.w3.org/TR/html52/syntax.html#comments
369
369
  const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
@@ -458,17 +458,6 @@ const replacer = (_key, val) => {
458
458
  return val;
459
459
  };
460
460
 
461
- /**
462
- * List of @babel/parser plugins that are used for template expression
463
- * transforms and SFC script transforms. By default we enable proposals slated
464
- * for ES2020. This will need to be updated as the spec moves forward.
465
- * Full list at https://babeljs.io/docs/en/next/babel-parser#plugins
466
- */
467
- const babelParserDefaultPlugins = [
468
- 'bigInt',
469
- 'optionalChaining',
470
- 'nullishCoalescingOperator'
471
- ];
472
461
  const EMPTY_OBJ = (process.env.NODE_ENV !== 'production')
473
462
  ? Object.freeze({})
474
463
  : {};
@@ -578,4 +567,4 @@ const getGlobalThis = () => {
578
567
  : {}));
579
568
  };
580
569
 
581
- export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, babelParserDefaultPlugins, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isDate, isFunction, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isModelListener, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
570
+ export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isDate, isFunction, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isModelListener, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.2.17",
3
+ "version": "3.2.21",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",