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

@dcloudio/uni-i18n

Package Overview
Dependencies
Maintainers
11
Versions
1067
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dcloudio/uni-i18n - npm Package Compare versions

Comparing version 3.0.0-4010520240507001 to 3.0.0-4020320240708001

9

dist/uni-i18n.cjs.js

@@ -256,6 +256,13 @@ 'use strict';

if (typeof locale !== 'string') {
[locale, messages] = [
// ;[locale, messages] = [
// messages as unknown as string,
// locale as unknown as LocaleMessages,
// ]
// 暂不使用数组解构,uts编译器暂未支持。
const options = [
messages,
locale,
];
locale = options[0];
messages = options[1];
}

@@ -262,0 +269,0 @@ if (typeof locale !== 'string') {

@@ -254,6 +254,13 @@ const isObject = (val) => val !== null && typeof val === 'object';

if (typeof locale !== 'string') {
[locale, messages] = [
// ;[locale, messages] = [
// messages as unknown as string,
// locale as unknown as LocaleMessages,
// ]
// 暂不使用数组解构,uts编译器暂未支持。
const options = [
messages,
locale,
];
locale = options[0];
messages = options[1];
}

@@ -260,0 +267,0 @@ if (typeof locale !== 'string') {

2

package.json
{
"name": "@dcloudio/uni-i18n",
"version": "3.0.0-4010520240507001",
"version": "3.0.0-4020320240708001",
"description": "@dcloudio/uni-i18n",

@@ -5,0 +5,0 @@ "main": "./dist/uni-i18n.cjs.js",

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