🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@atom-vue/shared

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atom-vue/shared - npm Package Compare versions

Comparing version
3.0.0-alpha.4
to
3.0.0-alpha.5
+7
-23
dist/shared.cjs.js

@@ -43,19 +43,8 @@ 'use strict';

'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
// wangyan51: 增加全局对象,开发用
// todo: atom-flutter编译自动生成,运行时传入
'console,atom,setTimeout,clearTimeout,setInterval,clearInterval,' +
'MessageType,FontStyle,TextDecorationStyle,BorderStyle,DecorationPosition,' +
'BoxFit,ImageRepeat,FlexFit,TextDirection,TextAlign,StackFit,Overflow,Axis,' +
'MainAxisAlignment,MainAxisSize,TextOverflow,TileMode,LinearGradient,' +
'ScrollPhysics,Radius,DecorationImage,Color,EdgeInsets,FontWeight,Uri,' +
'AlignmentDirectional,Offset,Alignment,BoxShadow,AlignmentGeometry,' +
'SweepGradient,BoxDecoration,UriOrString,NetworkImage,Border,RadialGradient,' +
'BoxConstraints,BorderRadius,BorderSide,Gradient,Paint,Shadow,Duration,' +
'TextDecoration,FlexParentData,StackParentData,RawGestureDetector,Padding,' +
'PaddingStyles,PositionedBox,PositionedBoxStyles,Flex,FlexStyles,Row,RowStyles,' +
'Column,ColumnStyles,Stack,StackStyles,Text,TextStyles,RenderObject,' +
'DecoratedBox,DecoratedBoxStyles,PageView,PageViewStyles,Scrollable,Container,' +
'ContainerStyles,Http,wrapperManager,GestureDetector,GestureDetectorStyles';
const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,';
let EXTERN_GLOBALS_WHITE_LISTED = '';
function setExternGlobals(externGlobalList) {
EXTERN_GLOBALS_WHITE_LISTED = externGlobalList;
}
const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED + EXTERN_GLOBALS_WHITE_LISTED);

@@ -280,8 +269,3 @@ const range = 2;

// These tag configs are shared between compiler-dom and runtime-dom, so they
// wangyan51: 删除HTML_TAGS、SVG_TAGS
// todo: 依赖atom-flutter自动生成,在运行时传入
const ELEMENT_TAGS = 'stack,decorated-box,text,container,positioned-box,flex,row,column,padding,page-view,gesture-detector';
const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
// wangyan51: 删除isSVGTag、isHTMLTag,改用isElementTag
const isElementTag = /*#__PURE__*/ makeMap(ELEMENT_TAGS);
const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);

@@ -497,3 +481,2 @@

exports.isBooleanAttr = isBooleanAttr;
exports.isElementTag = isElementTag;
exports.isFunction = isFunction;

@@ -522,2 +505,3 @@ exports.isGloballyWhitelisted = isGloballyWhitelisted;

exports.remove = remove;
exports.setExternGlobals = setExternGlobals;
exports.stringifyStyle = stringifyStyle;

@@ -524,0 +508,0 @@ exports.toDisplayString = toDisplayString;

@@ -43,19 +43,8 @@ 'use strict';

'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
// wangyan51: 增加全局对象,开发用
// todo: atom-flutter编译自动生成,运行时传入
'console,atom,setTimeout,clearTimeout,setInterval,clearInterval,' +
'MessageType,FontStyle,TextDecorationStyle,BorderStyle,DecorationPosition,' +
'BoxFit,ImageRepeat,FlexFit,TextDirection,TextAlign,StackFit,Overflow,Axis,' +
'MainAxisAlignment,MainAxisSize,TextOverflow,TileMode,LinearGradient,' +
'ScrollPhysics,Radius,DecorationImage,Color,EdgeInsets,FontWeight,Uri,' +
'AlignmentDirectional,Offset,Alignment,BoxShadow,AlignmentGeometry,' +
'SweepGradient,BoxDecoration,UriOrString,NetworkImage,Border,RadialGradient,' +
'BoxConstraints,BorderRadius,BorderSide,Gradient,Paint,Shadow,Duration,' +
'TextDecoration,FlexParentData,StackParentData,RawGestureDetector,Padding,' +
'PaddingStyles,PositionedBox,PositionedBoxStyles,Flex,FlexStyles,Row,RowStyles,' +
'Column,ColumnStyles,Stack,StackStyles,Text,TextStyles,RenderObject,' +
'DecoratedBox,DecoratedBoxStyles,PageView,PageViewStyles,Scrollable,Container,' +
'ContainerStyles,Http,wrapperManager,GestureDetector,GestureDetectorStyles';
const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,';
let EXTERN_GLOBALS_WHITE_LISTED = '';
function setExternGlobals(externGlobalList) {
EXTERN_GLOBALS_WHITE_LISTED = externGlobalList;
}
const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED + EXTERN_GLOBALS_WHITE_LISTED);

@@ -280,8 +269,3 @@ const range = 2;

// These tag configs are shared between compiler-dom and runtime-dom, so they
// wangyan51: 删除HTML_TAGS、SVG_TAGS
// todo: 依赖atom-flutter自动生成,在运行时传入
const ELEMENT_TAGS = 'stack,decorated-box,text,container,positioned-box,flex,row,column,padding,page-view,gesture-detector';
const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
// wangyan51: 删除isSVGTag、isHTMLTag,改用isElementTag
const isElementTag = /*#__PURE__*/ makeMap(ELEMENT_TAGS);
const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);

@@ -496,3 +480,2 @@

exports.isBooleanAttr = isBooleanAttr;
exports.isElementTag = isElementTag;
exports.isFunction = isFunction;

@@ -521,2 +504,3 @@ exports.isGloballyWhitelisted = isGloballyWhitelisted;

exports.remove = remove;
exports.setExternGlobals = setExternGlobals;
exports.stringifyStyle = stringifyStyle;

@@ -523,0 +507,0 @@ exports.toDisplayString = toDisplayString;

@@ -34,4 +34,2 @@

export declare const isElementTag: (key: string) => boolean;
export declare const isFunction: (val: unknown) => val is Function;

@@ -110,2 +108,4 @@

export declare function setExternGlobals(externGlobalList: string): void;
export declare const enum ShapeFlags {

@@ -112,0 +112,0 @@ ELEMENT = 1,

@@ -39,19 +39,8 @@ // Make a map and return a function for checking if a key

'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
// wangyan51: 增加全局对象,开发用
// todo: atom-flutter编译自动生成,运行时传入
'console,atom,setTimeout,clearTimeout,setInterval,clearInterval,' +
'MessageType,FontStyle,TextDecorationStyle,BorderStyle,DecorationPosition,' +
'BoxFit,ImageRepeat,FlexFit,TextDirection,TextAlign,StackFit,Overflow,Axis,' +
'MainAxisAlignment,MainAxisSize,TextOverflow,TileMode,LinearGradient,' +
'ScrollPhysics,Radius,DecorationImage,Color,EdgeInsets,FontWeight,Uri,' +
'AlignmentDirectional,Offset,Alignment,BoxShadow,AlignmentGeometry,' +
'SweepGradient,BoxDecoration,UriOrString,NetworkImage,Border,RadialGradient,' +
'BoxConstraints,BorderRadius,BorderSide,Gradient,Paint,Shadow,Duration,' +
'TextDecoration,FlexParentData,StackParentData,RawGestureDetector,Padding,' +
'PaddingStyles,PositionedBox,PositionedBoxStyles,Flex,FlexStyles,Row,RowStyles,' +
'Column,ColumnStyles,Stack,StackStyles,Text,TextStyles,RenderObject,' +
'DecoratedBox,DecoratedBoxStyles,PageView,PageViewStyles,Scrollable,Container,' +
'ContainerStyles,Http,wrapperManager,GestureDetector,GestureDetectorStyles';
const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,';
let EXTERN_GLOBALS_WHITE_LISTED = '';
function setExternGlobals(externGlobalList) {
EXTERN_GLOBALS_WHITE_LISTED = externGlobalList;
}
const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED + EXTERN_GLOBALS_WHITE_LISTED);

@@ -276,8 +265,3 @@ const range = 2;

// These tag configs are shared between compiler-dom and runtime-dom, so they
// wangyan51: 删除HTML_TAGS、SVG_TAGS
// todo: 依赖atom-flutter自动生成,在运行时传入
const ELEMENT_TAGS = 'stack,decorated-box,text,container,positioned-box,flex,row,column,padding,page-view,gesture-detector';
const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
// wangyan51: 删除isSVGTag、isHTMLTag,改用isElementTag
const isElementTag = /*#__PURE__*/ makeMap(ELEMENT_TAGS);
const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);

@@ -476,2 +460,2 @@

export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, invokeArrayFns, isArray, isBooleanAttr, isElementTag, isFunction, isGloballyWhitelisted, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, propsToAttrMap, remove, stringifyStyle, toDisplayString, toRawType, toTypeString };
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, invokeArrayFns, isArray, isBooleanAttr, isFunction, isGloballyWhitelisted, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, propsToAttrMap, remove, setExternGlobals, stringifyStyle, toDisplayString, toRawType, toTypeString };
{
"name": "@atom-vue/shared",
"version": "3.0.0-alpha.4",
"version": "3.0.0-alpha.5",
"description": "internal utils shared across @vue packages",

@@ -5,0 +5,0 @@ "main": "index.js",