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

background-worker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

background-worker - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

2

karma.conf.js

@@ -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 ) { " +

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