Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cainiaofe/cn-utils

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cainiaofe/cn-utils - npm Package Compare versions

Comparing version 0.2.13 to 0.2.14-beta.0

40

dist/dsm-meta.json
{
"version": "0.2.13",
"version": "0.2.14-beta.0",
"publisher": "chaojie.bcj",
"publishTime": 1725884821529,
"publishTime": 1726651970160,
"componentList": [

@@ -11,3 +11,3 @@ {

"title": "浏览器信息",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=浏览器信息--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=浏览器信息--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -21,3 +21,3 @@ ]

"title": "Cookie",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=cookie--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=cookie--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -31,3 +31,3 @@ ]

"title": "数字处理",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=数字处理--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=数字处理--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -41,3 +41,3 @@ ]

"title": "加密&解密",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=加密&解密--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=加密&解密--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -51,3 +51,3 @@ ]

"title": "运行时环境",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=运行时环境--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=运行时环境--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -61,3 +61,3 @@ ]

"title": "事件处理",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=事件处理--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=事件处理--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -71,3 +71,3 @@ ]

"title": "HTML处理",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=html处理--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=html处理--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -81,3 +81,3 @@ ]

"title": "国际化",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=国际化--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=国际化--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -91,3 +91,3 @@ ]

"title": "OS信息",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=os信息--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=os信息--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -101,3 +101,3 @@ ]

"title": "文件上传与下载",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=文件上传与下载--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=文件上传与下载--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -111,3 +111,3 @@ ]

"title": "其他",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=其他--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=其他--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -121,3 +121,3 @@ ]

"title": "URL处理",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=url处理--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=url处理--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
}

@@ -137,3 +137,3 @@ ]

"type": "iframe",
"url": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=classnames--docs&viewMode=docs"
"url": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=classnames--docs&viewMode=docs"
},

@@ -144,3 +144,3 @@ {

"type": "iframe",
"url": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=copy--docs&viewMode=docs"
"url": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=copy--docs&viewMode=docs"
},

@@ -151,3 +151,3 @@ {

"type": "iframe",
"url": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=querystring--docs&viewMode=docs"
"url": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=querystring--docs&viewMode=docs"
}

@@ -220,8 +220,8 @@ ]

"cdnMap": {
"index.js": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/dist/index.js",
"index.polyfill.js": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/dist/index.polyfill.js"
"index.js": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/dist/index.js",
"index.polyfill.js": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/dist/index.polyfill.js"
},
"readme": {
"title": "快速上手",
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.13/docs/iframe.html?id=快速上手--docs&viewMode=docs&cnUtilsVersion=0.2.13"
"link": "https://cn.alicdn.com/lib/cn-utils/cainiaofe/cn-utils/0.2.14-beta.0/docs/iframe.html?id=快速上手--docs&viewMode=docs&cnUtilsVersion=0.2.14-beta.0"
},

@@ -228,0 +228,0 @@ "libraryName": "CN_UTILS",

@@ -27,8 +27,8 @@ import { STANDARD_NUM_SYS_OPTION } from '../const';

var regex = /\D/; // \D 匹配任何非数字字符
var numStr = new Intl.NumberFormat(lang, STANDARD_NUM_SYS_OPTION).format(1111);
var numStr = new Intl.NumberFormat(lang, STANDARD_NUM_SYS_OPTION).format(11111);
var match = numStr.match(regex);
return (match === null || match === void 0 ? void 0 : match[0]) || ',';
return (match === null || match === void 0 ? void 0 : match[0]) || '';
}
catch (error) {
return ',';
return '';
}

@@ -39,3 +39,3 @@ };

var regex = /\D/g; // \D 匹配任何非数字字符
var numStr = new Intl.NumberFormat(lang, STANDARD_NUM_SYS_OPTION).format(111111);
var numStr = new Intl.NumberFormat(lang, STANDARD_NUM_SYS_OPTION).format(11111);
var match = numStr.match(regex);

@@ -56,3 +56,3 @@ if ((match === null || match === void 0 ? void 0 : match.length) === 2) {

secondaryGroupSize: getSecondaryGroupSize(lang),
fractionGroupSeparator: ',',
fractionGroupSeparator: '',
fractionGroupSize: 0,

@@ -59,0 +59,0 @@ };

@@ -31,8 +31,8 @@ "use strict";

var regex = /\D/; // \D 匹配任何非数字字符
var numStr = new Intl.NumberFormat(lang, const_1.STANDARD_NUM_SYS_OPTION).format(1111);
var numStr = new Intl.NumberFormat(lang, const_1.STANDARD_NUM_SYS_OPTION).format(11111);
var match = numStr.match(regex);
return (match === null || match === void 0 ? void 0 : match[0]) || ',';
return (match === null || match === void 0 ? void 0 : match[0]) || '';
}
catch (error) {
return ',';
return '';
}

@@ -43,3 +43,3 @@ };

var regex = /\D/g; // \D 匹配任何非数字字符
var numStr = new Intl.NumberFormat(lang, const_1.STANDARD_NUM_SYS_OPTION).format(111111);
var numStr = new Intl.NumberFormat(lang, const_1.STANDARD_NUM_SYS_OPTION).format(11111);
var match = numStr.match(regex);

@@ -60,3 +60,3 @@ if ((match === null || match === void 0 ? void 0 : match.length) === 2) {

secondaryGroupSize: getSecondaryGroupSize(lang),
fractionGroupSeparator: ',',
fractionGroupSeparator: '',
fractionGroupSize: 0,

@@ -63,0 +63,0 @@ };

{
"name": "@cainiaofe/cn-utils",
"version": "0.2.13",
"version": "0.2.14-beta.0",
"description": "菜鸟前端基础工具库",

@@ -24,3 +24,3 @@ "main": "lib/index.js",

"pub": "npm run prepub && npm publish --registry=https://registry.npmjs.org --access=public && tnpm sync @cainiaofe/cn-utils",
"pub:beta": "npm publish --tag beta --registry=https://registry.npmjs.org --access=public && tnpm sync @cainiaofe/cn-utils",
"pub:beta": "npm run prepub && npm publish --tag beta --registry=https://registry.npmjs.org --access=public && tnpm sync @cainiaofe/cn-utils",
"pub:docs": "npm run prepub && npm run build-storybook && cone cdn upload docs.tgz --namespace cn-utils -d docs --env prod && npm run postpub",

@@ -57,3 +57,3 @@ "pub:docs-pre": "npm run build-storybook && cone cdn upload docs.tgz --namespace cn-utils -d docs --env pre",

"@alicd/cone-postcss-pxtorem": "^5.1.2",
"@cainiaofe/cn-ui": "^0.11.9",
"@cainiaofe/cn-ui": "^0.11.x",
"@cainiaofe/cn-ui-theme-light": "^1.4.0",

@@ -95,4 +95,4 @@ "@commitlint/cli": "^14.1.0",

"qrcode.react": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-syntax-highlighter": "^15.4.5",

@@ -99,0 +99,0 @@ "sass": "^1.66.1",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc