background-worker
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -12,3 +12,3 @@ // Karma configuration | ||
// frameworks to use | ||
frameworks: [ 'mocha', 'expect', 'browserify', 'sinon' ], | ||
frameworks: [ 'mocha', 'expect', 'browserify' ], | ||
@@ -15,0 +15,0 @@ browserify: { |
{ | ||
"name": "background-worker", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Execute tasks on Web Workers without seperate files.", | ||
@@ -23,4 +23,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"bluebird": "^2.3.11", | ||
"underscore": "^1.7.0" | ||
"bluebird": "^2.3.11" | ||
}, | ||
@@ -27,0 +26,0 @@ "devDependencies": { |
"use strict"; | ||
var _ = require( 'underscore' ), | ||
Promise = require( 'bluebird' ), | ||
var Promise = require( 'bluebird' ), | ||
inherits = require( 'util' ) .inherits, | ||
@@ -226,6 +225,9 @@ EventEmitter = require( 'events' ).EventEmitter | ||
_.forEach(self.definitions, function( definition ) { | ||
src += " definitions['" + definition.key + "'] = " + definition.val + ";\n" | ||
}) | ||
for (var i = 0; i < self.definitions.length; i++) { | ||
var key = self.definitions[i].key | ||
var val = self.definitions[i].val | ||
src += " definitions['" + key + "'] = " + val + ";\n" | ||
} | ||
src += ";(" + function(){ | ||
@@ -422,5 +424,7 @@ | ||
_.forEach(self.definitions, function( definition ) { | ||
src += " definitions['" + definition.key + "'] = " + definition.val + ";" | ||
}) | ||
for (var i = 0; i < self.definitions.length; i++) { | ||
var key = self.definitions[i].key | ||
var val = self.definitions[i].val | ||
src += " definitions['" + key + "'] = " + val + ";" | ||
} | ||
@@ -427,0 +431,0 @@ src += "self.onmessage = function( event ) { " + |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15893
1
493
- Removedunderscore@^1.7.0
- Removedunderscore@1.13.7(transitive)