Socket
Socket
Sign inDemoInstall

stylecow-core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylecow-core - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

28

lib/coder.js

@@ -99,21 +99,21 @@ "use strict";

if (mapDest) {
//previous source
if (!previousMap && prev.map) {
previousMap = prev.map;
}
//previous source
if (!previousMap && prev.map) {
previousMap = prev.map;
}
if (previousMap) {
this.map = sourceMapTransfer({
fromSourceMap: this.map.toString(),
toSourceMap: previousMap
});
} else {
this.map = this.map.toString();
}
if (previousMap) {
this.map = sourceMapTransfer({
fromSourceMap: this.map.toString(),
toSourceMap: previousMap
});
} else {
this.map = this.map.toString();
}
if (mapDest) {
//sourcemap annotation
if (mapDest === true) {
this.code += '\n/*# sourceMappingURL=data:application/json;base64,' + (new Buffer(this.map)).toString('base64') + ' */\n';
} else {
} else if (mapDest !== false) {
this.code += '\n/*# sourceMappingURL=' + path.relative(path.dirname(cssFile), mapDest) + ' */\n';

@@ -120,0 +120,0 @@ }

@@ -10,3 +10,3 @@ {

],
"version": "2.4.0",
"version": "2.4.1",
"engines": {

@@ -32,4 +32,4 @@ "node": ">=4.0"

"devDependencies": {
"mocha": "^3.0.2"
"mocha": "^3.1.2"
}
}

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