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
1745
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.963 to 0.2.964

6

lib/index.js

@@ -32,3 +32,4 @@ const tags = require('./tags')

getComponentName,
convertStaticStyle
convertStaticStyle,
devtoolModuleFilenameTemplate
} = require('./util')

@@ -102,3 +103,4 @@

nvueJsPreprocessOptions,
nvueHtmlPreprocessOptions
nvueHtmlPreprocessOptions,
devtoolModuleFilenameTemplate
}

@@ -0,0 +0,0 @@ const fs = require('fs')

@@ -90,2 +90,4 @@ const path = require('path')

const sourceRoot = normalizePath(process.env.UNI_INPUT_DIR)
module.exports = {

@@ -119,3 +121,26 @@ md5,

return str
})
}),
devtoolModuleFilenameTemplate (info) {
let needSourceMap = false
const absoluteResourcePath = normalizePath(info.absoluteResourcePath)
if (absoluteResourcePath.indexOf(sourceRoot) !== -1) {
if (absoluteResourcePath.endsWith('.js')) {
needSourceMap = true
} else if (
!info.moduleId &&
(
absoluteResourcePath.endsWith('.vue') ||
absoluteResourcePath.endsWith('.nvue')
)
) {
needSourceMap = true
}
}
if (needSourceMap) {
const filePath = normalizePath(path.relative(sourceRoot, absoluteResourcePath))
if (filePath !== 'main.js') {
return `uni-app:///${filePath}`
}
}
}
}
{
"name": "@dcloudio/uni-cli-shared",
"version": "0.2.963",
"version": "0.2.964",
"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