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

cssproc

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssproc - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

11

lib/index.js

@@ -37,7 +37,14 @@

relative = resolved;
if (item.substr(0, 1) !== path.sep) {
if (item.charAt(0) !== '/') {
relative = path.relative(options.root, resolved);
}
expanded = URI.protocol + '//' + URI.hostname + path.join(URI.pathname, relative);
// Windows root directory handling.
if (process.env.OS === 'Windows_NT' && relative.substr(1, 2) === ':\\') {
relative = relative.substr(2);
}
expanded = URI.protocol + '//' + URI.hostname + path.join(URI.pathname, relative).replace(/\\\\|\\/g, '/');
str = str.replace(baseItem, baseItem.replace(item, expanded));

@@ -44,0 +51,0 @@ }

2

package.json

@@ -5,3 +5,3 @@ {

"author": "Dav Glass <davglass@gmail.com>",
"version": "0.0.1",
"version": "0.0.2",
"main": "./lib/index.js",

@@ -8,0 +8,0 @@ "devDependencies": {

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