You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

grunt-cssrb

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-cssrb - npm Package Compare versions

Comparing version

to
0.1.1

2

package.json
{
"name": "grunt-cssrb",
"description": "CSS resources rebase plugun",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/iadramelk/grunt-cssrb",

@@ -6,0 +6,0 @@ "author": {

@@ -69,4 +69,8 @@ # grunt-cssrb

### 0.1.1
- Fixed bug with replacing '../font/fontawesome-webfont.eot?#iefix&v=3.2.1' urls.
### 0.1.0
Initial release.
- Initial release.

@@ -77,4 +77,16 @@ /*

mask = new RegExp( key );
if ( typeof key === 'string' ) {
mask = new RegExp( key );
} else if ( key instanceof RegExp === true ) {
mask = key;
} else {
grunt.log.error( '"' + key + '" pattern is ignored. Must be RegExp or String.' );
}
urls_collection = URLS.getURLs( mask );

@@ -84,8 +96,26 @@

var path_old = path.join( options.old_base, path_url ),
path_new = path.join( options.new_base, patterns[ key ], path.basename( path_url ) ),
file_exists = grunt.file.exists( path_old );
var path_old = path.join( options.old_base, path_url ),
path_new = path.join( options.new_base, patterns[ key ], path.basename( path_url ) ),
file_exists;
URLS.changeURLContent( path_url, path.join( patterns[ key ], path.basename( path_url ) ) );
if ( path_old.indexOf('?') !== -1 ) {
path_old = path_old.slice( 0, path_old.indexOf('?') );
path_new = path_new.slice( 0, path_new.indexOf('?') );
}
if ( path_old.indexOf('#') !== -1 ) {
path_old = path_old.slice( 0, path_old.indexOf('#') );
path_new = path_new.slice( 0, path_new.indexOf('#') );
}
file_exists = grunt.file.exists( path_old );
var path_regex = path_url.replace(/\//gi, '\\/');
path_regex = path_regex.replace(/\?/gi, '\\?');
path_regex = path_regex.replace(/\./gi, '\\.');
URLS.changeURLContent( new RegExp(path_regex), path.join( patterns[ key ], path.basename( path_url ) ) );
if ( options.move && file_exists ) {

@@ -92,0 +122,0 @@

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