New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stencil/sass

Package Overview
Dependencies
Maintainers
11
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stencil/sass - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

4

dist/util.d.ts

@@ -6,1 +6,5 @@ import * as d from './declarations';

export declare function normalizePath(str: string): string;
export declare function getModuleId(orgImport: string): {
moduleId: string;
filePath: string;
};

33

dist/util.js

@@ -59,13 +59,10 @@ import * as path from 'path';

try {
const orgUrl = url.substr(1);
const parts = orgUrl.split('/');
const moduleId = parts.shift();
const filePath = parts.join('/');
if (moduleId) {
const m = getModuleId(url);
if (m.moduleId) {
context.sys.resolveModuleId({
moduleId,
containingFile: fileName
moduleId: m.moduleId,
containingFile: m.filePath
}).then((resolved) => {
if (resolved.pkgDirPath) {
const resolvedPath = path.join(resolved.pkgDirPath, filePath);
const resolvedPath = path.join(resolved.pkgDirPath, m.filePath);
done({

@@ -129,4 +126,24 @@ file: context.sys.normalizePath(resolvedPath)

}
export function getModuleId(orgImport) {
if (orgImport.startsWith('~')) {
orgImport = orgImport.substring(1);
}
const splt = orgImport.split('/');
const m = {
moduleId: null,
filePath: null,
};
if (orgImport.startsWith('@') && splt.length > 1) {
m.moduleId = splt.slice(0, 2).join('/');
m.filePath = splt.slice(2).join('/');
}
else {
m.moduleId = splt[0];
m.filePath = splt.slice(1).join('/');
}
return m;
}
;
const EXTENDED_PATH_REGEX = /^\\\\\?\\/;
const NON_ASCII_REGEX = /[^\x00-\x80]+/;
const SLASH_REGEX = /\\/g;
{
"name": "@stencil/sass",
"version": "1.3.1",
"version": "1.3.2",
"license": "MIT",

@@ -25,3 +25,4 @@ "main": "dist/index.js",

"devDependencies": {
"@stencil/core": "^1.12.0-1",
"@rollup/plugin-node-resolve": "^8.0.1",
"@stencil/core": "^1.14.0",
"@types/jest": "24.9.1",

@@ -33,8 +34,7 @@ "@types/node": "13.9.8",

"rimraf": "^3.0.2",
"rollup": "^1.32.1",
"rollup-plugin-node-resolve": "^5.2.0",
"sass": "1.26.3",
"terser": "^4.6.10",
"rollup": "^2.17.1",
"sass": "1.26.8",
"terser": "^4.8.0",
"ts-jest": "^24.3.0",
"typescript": "3.8.3"
"typescript": "3.9.5"
},

@@ -56,2 +56,2 @@ "repository": {

}
}
}

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