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

@dcloudio/uni-cli-shared

Package Overview
Dependencies
Maintainers
6
Versions
1743
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dcloudio/uni-cli-shared - npm Package Compare versions

Comparing version 0.2.950 to 0.2.951

20

lib/cache.js

@@ -13,2 +13,3 @@ /**

let appJsonUsingComponents = Object.create(null)
let componentSpecialMethods = Object.create(null)

@@ -183,2 +184,17 @@ function updateJsonFile (name, jsonStr) {

function updateSpecialMethods (name, specialMethods) {
if (specialMethods.length) {
componentSpecialMethods[name] = specialMethods
} else {
delete componentSpecialMethods[name]
}
}
function getSpecialMethods (name) {
if (!name) {
return componentSpecialMethods
}
return componentSpecialMethods[name] || []
}
module.exports = {

@@ -192,2 +208,3 @@ getComponentSet,

updateComponentJson,
updateSpecialMethods,
updateUsingComponents,

@@ -198,3 +215,4 @@ updateUsingGlobalComponents,

updateGenericComponents,
getChangedJsonFileMap
getChangedJsonFileMap,
getSpecialMethods
}

@@ -38,2 +38,3 @@ const tags = require('./tags')

getPlatforms,
getPlatformGlobal,
getPlatformScss,

@@ -83,2 +84,3 @@ runByHBuilderX,

getPlatformVue,
getPlatformGlobal,
getPlatformCssVars,

@@ -85,0 +87,0 @@ getPlatformCssnano,

2

lib/pages.js

@@ -85,3 +85,3 @@ const fs = require('fs')

}
if (

@@ -88,0 +88,0 @@ process.env.UNI_PLATFORM === 'app-plus' &&

@@ -14,2 +14,3 @@ const fs = require('fs')

'h5': {
global: '',
exts: false,

@@ -25,2 +26,3 @@ vue: '@dcloudio/vue-cli-plugin-uni/packages/h5-vue',

'app-plus': {
global: 'wx',
exts: {

@@ -40,2 +42,3 @@ style: '.wxss',

'mp-weixin': {
global: 'wx',
exts: {

@@ -56,2 +59,3 @@ style: '.wxss',

'mp-baidu': {
global: 'swan',
exts: {

@@ -72,2 +76,3 @@ style: '.css',

'mp-alipay': {
global: 'my',
exts: {

@@ -88,2 +93,3 @@ style: '.acss',

'mp-toutiao': {
global: 'tt',
exts: {

@@ -184,2 +190,5 @@ style: '.ttss',

},
getPlatformGlobal () {
return platform.global
},
getPlatformExts () {

@@ -186,0 +195,0 @@ return platform.exts

{
"name": "@dcloudio/uni-cli-shared",
"version": "0.2.950",
"version": "0.2.951",
"description": "uni-cli-shared",

@@ -5,0 +5,0 @@ "main": "lib/index.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