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

mincer

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mincer - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

9

HISTORY.md

@@ -1,4 +0,11 @@

1.4.1 / 2015-01-21
1.4.2 / 2016-07-27
------------------
- Added option `noSourceMapProtection` to skip insert XSSI protection
sequence into generated sourcemaps.
1.4.1 / 2016-01-21
------------------
- Fixed sourcemaps for autoprefixer/csswring (when both enabled), #214.

@@ -5,0 +12,0 @@ Thanks to @jeroenvisser101.

8

lib/mincer/asset_attributes.js

@@ -77,6 +77,10 @@ /** internal

getter(AssetAttributes.prototype, 'logicalPath', function () {
var pathname = this.pathname, paths = this.environment.paths, root_path;
var pathname = this.pathname,
paths = this.environment.paths,
unix_path = pathname.replace(/\\/g, '/'),
root_path;
root_path = _.find(paths, function (root) {
return path.join(root, '/') === pathname.substr(0, root.length + 1);
root = path.join(root, '/').replace(/\\/g, '/');
return root === unix_path.substr(0, root.length);
});

@@ -83,0 +87,0 @@

@@ -179,2 +179,3 @@ /**

* - `compress` (false) - set `true` to also create gzipped files
* - `noSourceMapProtection` (false) - set `true` to skip adding XSSI protection header
*

@@ -262,6 +263,13 @@ * Compile and write asset(s) to directory. The asset is written to a

if (asset.sourceMap) {
// add XSSI protection header
write(target + '.map', asset.mtime, ')]}\'\n' + asset.sourceMap);
// XSSI protection header enabled by default
var header = ')]}\'\n';
// Optionally skip XSSI protection header
if (options.noSourceMapProtection) {
header = '';
}
write(target + '.map', asset.mtime, header + asset.sourceMap);
if (options.compress) {
write(target + '.map.gz', asset.mtime, gzip(')]}\'\n' + asset.sourceMap));
write(target + '.map.gz', asset.mtime, gzip(header + asset.sourceMap));
}

@@ -268,0 +276,0 @@ }

{
"name": "mincer",
"version": "1.4.1",
"version": "1.4.2",
"description": "Web assets processor. Native JavaScript port of Sprockets.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -24,3 +24,3 @@ Mincer - assets processor

[tutorial](https://github.com/nodeca/mincer/wiki/How-to-create-addon). Also
you can [search existing extentions](https://www.npmjs.org/browse/keyword/mincer-contrib)
you can [search existing extensions](https://www.npmjs.org/browse/keyword/mincer-contrib)
in npm.

@@ -33,3 +33,3 @@

- upgrade `csswring` & `autoprefixer` to latest
- upgrade `csswring` to >=4.x and `autoprefixer` to >= 6.x
- if you used legacy `autoprefixer-core` package, replace it with `autoprefixer`

@@ -335,3 +335,3 @@ - include `postcss` >= 4.1

registered helpers. Macros are off by default. You should enable those for
particular extentions:
particular extensions:

@@ -338,0 +338,0 @@ ```javascript

@@ -20,3 +20,3 @@ /* global describe, before, after, it */

srv = child.spawn(path.join(__dirname, '../examples/server.js'), [], { env: env });
srv = child.spawn('node', [ path.join(__dirname, '../examples/server.js') ], { env: env });

@@ -36,3 +36,3 @@ setTimeout(done, 1000);

it('Manifest run', function (done) {
child.exec(path.join(__dirname, '../examples/manifest.js'), function (err) {
child.exec('node ' + path.join(__dirname, '../examples/manifest.js'), function (err) {
if (err) {

@@ -39,0 +39,0 @@ done(err);

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