@vue/shared
Advanced tools
+31
-24
| /** | ||
| * @vue/shared v3.6.0-beta.7 | ||
| * @vue/shared v3.6.0-beta.8 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
| * @license MIT | ||
| **/ | ||
| Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); | ||
| Object.defineProperties(exports, { | ||
| __esModule: { value: true }, | ||
| [Symbol.toStringTag]: { value: "Module" } | ||
| }); | ||
| //#region packages/shared/src/makeMap.ts | ||
@@ -22,3 +24,2 @@ /** | ||
| } | ||
| //#endregion | ||
@@ -149,3 +150,2 @@ //#region packages/shared/src/general.ts | ||
| } | ||
| //#endregion | ||
@@ -220,3 +220,2 @@ //#region packages/shared/src/patchFlags.ts | ||
| }; | ||
| //#endregion | ||
@@ -248,3 +247,2 @@ //#region packages/shared/src/shapeFlags.ts | ||
| }; | ||
| //#endregion | ||
@@ -268,10 +266,5 @@ //#region packages/shared/src/slotFlags.ts | ||
| }; | ||
| //#endregion | ||
| //#region packages/shared/src/globalsAllowList.ts | ||
| const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"; | ||
| const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED); | ||
| const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"); | ||
| /** @deprecated use `isGloballyAllowed` instead */ | ||
| const isGloballyWhitelisted = isGloballyAllowed; | ||
| //#endregion | ||
@@ -315,3 +308,2 @@ //#region packages/shared/src/codeframe.ts | ||
| } | ||
| //#endregion | ||
@@ -375,3 +367,2 @@ //#region packages/shared/src/normalizeProp.ts | ||
| } | ||
| //#endregion | ||
@@ -427,3 +418,2 @@ //#region packages/shared/src/domTagConfig.ts | ||
| const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS); | ||
| //#endregion | ||
@@ -501,3 +491,2 @@ //#region packages/shared/src/domAttrConfig.ts | ||
| } | ||
| //#endregion | ||
@@ -513,3 +502,2 @@ //#region packages/shared/src/domNamespace.ts | ||
| }; | ||
| //#endregion | ||
@@ -559,3 +547,2 @@ //#region packages/shared/src/escapeHtml.ts | ||
| } | ||
| //#endregion | ||
@@ -596,3 +583,2 @@ //#region packages/shared/src/looseEqual.ts | ||
| } | ||
| //#endregion | ||
@@ -632,3 +618,2 @@ //#region packages/shared/src/toDisplayString.ts | ||
| }; | ||
| //#endregion | ||
@@ -671,3 +656,2 @@ //#region packages/shared/src/subSequence.ts | ||
| } | ||
| //#endregion | ||
@@ -685,4 +669,25 @@ //#region packages/shared/src/cssVars.ts | ||
| } | ||
| //#endregion | ||
| //#region packages/shared/src/vaporFlags.ts | ||
| /** | ||
| * Flags to optimize vapor `createFor` runtime behavior, shared between the | ||
| * compiler and the runtime | ||
| */ | ||
| const VaporVForFlags = { | ||
| "FAST_REMOVE": 1, | ||
| "1": "FAST_REMOVE", | ||
| "IS_COMPONENT": 2, | ||
| "2": "IS_COMPONENT", | ||
| "ONCE": 4, | ||
| "4": "ONCE" | ||
| }; | ||
| const VaporBlockShape = { | ||
| "EMPTY": 0, | ||
| "0": "EMPTY", | ||
| "SINGLE_ROOT": 1, | ||
| "1": "SINGLE_ROOT", | ||
| "MULTI_ROOT": 2, | ||
| "2": "MULTI_ROOT" | ||
| }; | ||
| //#endregion | ||
| exports.EMPTY_ARR = EMPTY_ARR; | ||
@@ -697,2 +702,4 @@ exports.EMPTY_OBJ = EMPTY_OBJ; | ||
| exports.SlotFlags = SlotFlags; | ||
| exports.VaporBlockShape = VaporBlockShape; | ||
| exports.VaporVForFlags = VaporVForFlags; | ||
| exports.YES = YES; | ||
@@ -773,2 +780,2 @@ exports.camelize = camelize; | ||
| exports.toRawType = toRawType; | ||
| exports.toTypeString = toTypeString; | ||
| exports.toTypeString = toTypeString; |
+31
-24
| /** | ||
| * @vue/shared v3.6.0-beta.7 | ||
| * @vue/shared v3.6.0-beta.8 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
| * @license MIT | ||
| **/ | ||
| Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); | ||
| Object.defineProperties(exports, { | ||
| __esModule: { value: true }, | ||
| [Symbol.toStringTag]: { value: "Module" } | ||
| }); | ||
| //#region packages/shared/src/makeMap.ts | ||
@@ -22,3 +24,2 @@ /** | ||
| } | ||
| //#endregion | ||
@@ -149,3 +150,2 @@ //#region packages/shared/src/general.ts | ||
| } | ||
| //#endregion | ||
@@ -220,3 +220,2 @@ //#region packages/shared/src/patchFlags.ts | ||
| }; | ||
| //#endregion | ||
@@ -248,3 +247,2 @@ //#region packages/shared/src/shapeFlags.ts | ||
| }; | ||
| //#endregion | ||
@@ -268,10 +266,5 @@ //#region packages/shared/src/slotFlags.ts | ||
| }; | ||
| //#endregion | ||
| //#region packages/shared/src/globalsAllowList.ts | ||
| const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"; | ||
| const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED); | ||
| const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"); | ||
| /** @deprecated use `isGloballyAllowed` instead */ | ||
| const isGloballyWhitelisted = isGloballyAllowed; | ||
| //#endregion | ||
@@ -315,3 +308,2 @@ //#region packages/shared/src/codeframe.ts | ||
| } | ||
| //#endregion | ||
@@ -375,3 +367,2 @@ //#region packages/shared/src/normalizeProp.ts | ||
| } | ||
| //#endregion | ||
@@ -427,3 +418,2 @@ //#region packages/shared/src/domTagConfig.ts | ||
| const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS); | ||
| //#endregion | ||
@@ -501,3 +491,2 @@ //#region packages/shared/src/domAttrConfig.ts | ||
| } | ||
| //#endregion | ||
@@ -513,3 +502,2 @@ //#region packages/shared/src/domNamespace.ts | ||
| }; | ||
| //#endregion | ||
@@ -559,3 +547,2 @@ //#region packages/shared/src/escapeHtml.ts | ||
| } | ||
| //#endregion | ||
@@ -596,3 +583,2 @@ //#region packages/shared/src/looseEqual.ts | ||
| } | ||
| //#endregion | ||
@@ -632,3 +618,2 @@ //#region packages/shared/src/toDisplayString.ts | ||
| }; | ||
| //#endregion | ||
@@ -671,3 +656,2 @@ //#region packages/shared/src/subSequence.ts | ||
| } | ||
| //#endregion | ||
@@ -685,4 +669,25 @@ //#region packages/shared/src/cssVars.ts | ||
| } | ||
| //#endregion | ||
| //#region packages/shared/src/vaporFlags.ts | ||
| /** | ||
| * Flags to optimize vapor `createFor` runtime behavior, shared between the | ||
| * compiler and the runtime | ||
| */ | ||
| const VaporVForFlags = { | ||
| "FAST_REMOVE": 1, | ||
| "1": "FAST_REMOVE", | ||
| "IS_COMPONENT": 2, | ||
| "2": "IS_COMPONENT", | ||
| "ONCE": 4, | ||
| "4": "ONCE" | ||
| }; | ||
| const VaporBlockShape = { | ||
| "EMPTY": 0, | ||
| "0": "EMPTY", | ||
| "SINGLE_ROOT": 1, | ||
| "1": "SINGLE_ROOT", | ||
| "MULTI_ROOT": 2, | ||
| "2": "MULTI_ROOT" | ||
| }; | ||
| //#endregion | ||
| exports.EMPTY_ARR = EMPTY_ARR; | ||
@@ -697,2 +702,4 @@ exports.EMPTY_OBJ = EMPTY_OBJ; | ||
| exports.SlotFlags = SlotFlags; | ||
| exports.VaporBlockShape = VaporBlockShape; | ||
| exports.VaporVForFlags = VaporVForFlags; | ||
| exports.YES = YES; | ||
@@ -773,2 +780,2 @@ exports.camelize = camelize; | ||
| exports.toRawType = toRawType; | ||
| exports.toTypeString = toTypeString; | ||
| exports.toTypeString = toTypeString; |
+27
-0
@@ -391,1 +391,28 @@ //#region temp/packages/shared/src/makeMap.d.ts | ||
| //#endregion | ||
| //#region temp/packages/shared/src/vaporFlags.d.ts | ||
| /** | ||
| * Flags to optimize vapor `createFor` runtime behavior, shared between the | ||
| * compiler and the runtime | ||
| */ | ||
| export declare enum VaporVForFlags { | ||
| /** | ||
| * v-for is the only child of a parent container, so it can take the fast | ||
| * path with textContent = '' when the whole list is emptied | ||
| */ | ||
| FAST_REMOVE = 1, | ||
| /** | ||
| * v-for used on component - we can skip creating child scopes for each block | ||
| * because the component itself already has a scope. | ||
| */ | ||
| IS_COMPONENT = 2, | ||
| /** | ||
| * v-for inside v-once | ||
| */ | ||
| ONCE = 4 | ||
| } | ||
| export declare enum VaporBlockShape { | ||
| EMPTY = 0, | ||
| SINGLE_ROOT = 1, | ||
| MULTI_ROOT = 2 | ||
| } | ||
| //#endregion |
| /** | ||
| * @vue/shared v3.6.0-beta.7 | ||
| * @vue/shared v3.6.0-beta.8 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -20,3 +20,2 @@ * @license MIT | ||
| } | ||
| //#endregion | ||
@@ -147,3 +146,2 @@ //#region packages/shared/src/general.ts | ||
| } | ||
| //#endregion | ||
@@ -218,3 +216,2 @@ //#region packages/shared/src/patchFlags.ts | ||
| }; | ||
| //#endregion | ||
@@ -246,3 +243,2 @@ //#region packages/shared/src/shapeFlags.ts | ||
| }; | ||
| //#endregion | ||
@@ -266,10 +262,5 @@ //#region packages/shared/src/slotFlags.ts | ||
| }; | ||
| //#endregion | ||
| //#region packages/shared/src/globalsAllowList.ts | ||
| const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"; | ||
| const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED); | ||
| const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"); | ||
| /** @deprecated use `isGloballyAllowed` instead */ | ||
| const isGloballyWhitelisted = isGloballyAllowed; | ||
| //#endregion | ||
@@ -313,3 +304,2 @@ //#region packages/shared/src/codeframe.ts | ||
| } | ||
| //#endregion | ||
@@ -373,3 +363,2 @@ //#region packages/shared/src/normalizeProp.ts | ||
| } | ||
| //#endregion | ||
@@ -425,3 +414,2 @@ //#region packages/shared/src/domTagConfig.ts | ||
| const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS); | ||
| //#endregion | ||
@@ -499,3 +487,2 @@ //#region packages/shared/src/domAttrConfig.ts | ||
| } | ||
| //#endregion | ||
@@ -511,3 +498,2 @@ //#region packages/shared/src/domNamespace.ts | ||
| }; | ||
| //#endregion | ||
@@ -557,3 +543,2 @@ //#region packages/shared/src/escapeHtml.ts | ||
| } | ||
| //#endregion | ||
@@ -594,3 +579,2 @@ //#region packages/shared/src/looseEqual.ts | ||
| } | ||
| //#endregion | ||
@@ -630,3 +614,2 @@ //#region packages/shared/src/toDisplayString.ts | ||
| }; | ||
| //#endregion | ||
@@ -669,3 +652,2 @@ //#region packages/shared/src/subSequence.ts | ||
| } | ||
| //#endregion | ||
@@ -685,4 +667,25 @@ //#region packages/shared/src/cssVars.ts | ||
| } | ||
| //#endregion | ||
| export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString }; | ||
| //#region packages/shared/src/vaporFlags.ts | ||
| /** | ||
| * Flags to optimize vapor `createFor` runtime behavior, shared between the | ||
| * compiler and the runtime | ||
| */ | ||
| const VaporVForFlags = { | ||
| "FAST_REMOVE": 1, | ||
| "1": "FAST_REMOVE", | ||
| "IS_COMPONENT": 2, | ||
| "2": "IS_COMPONENT", | ||
| "ONCE": 4, | ||
| "4": "ONCE" | ||
| }; | ||
| const VaporBlockShape = { | ||
| "EMPTY": 0, | ||
| "0": "EMPTY", | ||
| "SINGLE_ROOT": 1, | ||
| "1": "SINGLE_ROOT", | ||
| "MULTI_ROOT": 2, | ||
| "2": "MULTI_ROOT" | ||
| }; | ||
| //#endregion | ||
| export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, VaporBlockShape, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString }; |
+1
-1
| { | ||
| "name": "@vue/shared", | ||
| "version": "3.6.0-beta.7", | ||
| "version": "3.6.0-beta.8", | ||
| "description": "internal utils shared across @vue packages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
111097
1.67%2704
4%22
4.76%