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

assets-packager

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-packager - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

test/data/test2/._assets.yml

2

._History.md

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

Mac OS X  2��ATTR'�I��!�!com.macromates.caret{
Mac OS X  2��ATTR'�a��!�!com.macromates.caret{
column = 5;
line = 0;
}

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR'�K�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR'�c�� � com.macromates.caretx���R������<[k0?'3/«��

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

Mac OS X  2��ATTR'�O��"�"com.macromates.caret{
column = 3;
line = 23;
Mac OS X  2��ATTR'�g��#�#com.macromates.caret{
column = 17;
line = 10;
}

@@ -0,1 +1,7 @@

0.3.0 / 2011-04-17
==================
* Added ability to specify asset hosts via -a parameter.
* Added skipping LESS processing when packaging JS files only.
0.2.0 / 2011-04-17

@@ -2,0 +8,0 @@ ==================

@@ -11,3 +11,3 @@ {

},
"version": "0.2.0",
"version": "0.3.0",
"main": "index.js",

@@ -14,0 +14,0 @@ "bin": {

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

Mac OS X  2��ATTR'�R�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR'�j��$�$com.macromates.caret{
column = 10;
line = 389;
}

@@ -26,2 +26,5 @@ var vows = require('vows'),

};
assert.notHasFile = function(set, type, name) {
assert.isFalse(path.existsSync(fullPath(path.join('test/data', set, 'public', type, name))));
};
assert.hasBundledFile = function(set, type, name) {

@@ -312,2 +315,97 @@ assert.isTrue(path.existsSync(fullPath(path.join('test/data', set, 'public', type, 'bundled', name))));

}
}).addBatch({
'not compiling less when packaging js packages only': {
topic: withOptions('-r data/test1/public -c data/test1/assets.yml -g -n -o all.js'),
'should not give error': function(error, stdout) {
assert.isNull(error);
},
'should not compile css to less': function() {
assert.notHasFile('test1', 'stylesheets', 'one.css');
assert.notHasFile('test1', 'stylesheets', 'two.css');
},
teardown: function() {
cleanBundles('test1');
}
}
}).addBatch({
'not showing processing JS when packaging CSS only': {
topic: withOptions('-r data/test1/public -c data/test1/assets.yml -g -n -o all.css'),
'should not output processing JS': function(error, stdout) {
assert.equal(-1, stdout.indexOf("Processing type 'javascripts'"));
},
teardown: function() {
cleanBundles('test1');
}
}
}).addBatch({
'not showing processing CSS when packaging JS only': {
topic: withOptions('-r data/test1/public -c data/test1/assets.yml -g -n -o all.js'),
'should not output processing CSS': function(error, stdout) {
assert.equal(-1, stdout.indexOf("Processing type 'stylesheets'"));
},
teardown: function() {
cleanBundles('test1');
}
}
});
exports.assetsHosts = vows.describe('assets hosts').addBatch({
'no asset hosts': {
topic: withOptions('-r data/test2/public -c data/test2/assets.yml'),
'in plain file': {
topic: function() {
fs.readFile(fullPath('test/data/test2/public/stylesheets/bundled/all.css'), 'utf-8', this.callback);
},
'first file png': function(error, data) {
assert.include(data, 'one.png');
},
'second file png': function(error, data) {
assert.include(data, 'two.png');
},
'should not add assets hosts': function(error, data) {
assert.include(data, "url(/images/one.png");
assert.include(data, "url(/images/two.png");
}
},
teardown: function() {
cleanBundles('test2');
}
}
}).addBatch({
'asset hosts': {
topic: withOptions('-r data/test2/public -c data/test2/assets.yml -n -a assets[0,1].example.com'),
'in plain file': {
topic: function() {
fs.readFile(fullPath('test/data/test2/public/stylesheets/bundled/all.css'), 'utf-8', this.callback);
},
'first file png': function(error, data) {
assert.include(data, 'one.png');
},
'second file png': function(error, data) {
assert.include(data, 'two.png');
},
'should add assets hosts': function(error, data) {
assert.include(data, "url(//assets0.example.com/images/one.png");
assert.include(data, "url(//assets1.example.com/images/two.png");
}
},
'in noembed file': {
topic: function() {
fs.readFile(fullPath('test/data/test2/public/stylesheets/bundled/all-noembed.css'), 'utf-8', this.callback);
},
'first file png': function(error, data) {
assert.include(data, 'one.png');
},
'second file png': function(error, data) {
assert.include(data, 'two.png');
},
'should add assets hosts': function(error, data) {
assert.include(data, "url(//assets0.example.com/images/one.png");
assert.include(data, "url(//assets1.example.com/images/two.png");
}
},
teardown: function() {
cleanBundles('test2');
}
}
});

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR'�_�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR'���� � com.macromates.caretx���R������<[k0?'3/«��

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR'�a�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTR'���� � com.macromates.caretx���R������<[k0?'3/«��

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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