@dcloudio/uni-cli-shared
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -25,2 +25,3 @@ const tags = require('./tags') | ||
md5, | ||
hasModule, | ||
hashify, | ||
@@ -56,2 +57,3 @@ camelize, | ||
hashify, | ||
hasModule, | ||
camelize, | ||
@@ -58,0 +60,0 @@ hyphenate, |
@@ -82,2 +82,9 @@ const path = require('path') | ||
function hasModule (name) { | ||
try { | ||
return !!require.resolve(name) | ||
} catch (e) {} | ||
return false | ||
} | ||
module.exports = { | ||
@@ -88,2 +95,3 @@ md5, | ||
}, | ||
hasModule, | ||
parseStyle (style = {}) { | ||
@@ -90,0 +98,0 @@ Object.keys(style).forEach(name => { |
{ | ||
"name": "@dcloudio/uni-cli-shared", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "uni-cli-shared", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30136
653
21