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

driver-worker

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

driver-worker - npm Package Compare versions

Comparing version 0.6.6-5 to 0.6.6-6

30

lib/index.js

@@ -41,2 +41,9 @@ "use strict";

function createLocation() {
var sendLocationDirective = function sendLocationDirective(data) {
return postMessage({
type: 'Location',
data: data
});
};
return {

@@ -49,8 +56,23 @@ get href() {

document.URL = url;
postMessage({
type: 'Location',
href: url
sendLocationDirective({
type: 'assign',
prop: 'href',
val: url
});
},
replace: function replace(url) {
document.URL = url;
sendLocationDirective({
type: 'call',
prop: 'replace',
args: [url]
});
},
reload: function reload() {
sendLocationDirective({
type: 'call',
prop: 'reload'
});
}
};

@@ -57,0 +79,0 @@ }

2

package.json
{
"name": "driver-worker",
"version": "0.6.6-5",
"version": "0.6.6-6",
"description": "Worker driver for Rax",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -29,2 +29,3 @@ import { convertUnit, setRem } from 'style-unit';

function createLocation() {
const sendLocationDirective = (data) => postMessage({ type: 'Location', data });
return {

@@ -36,4 +37,11 @@ get href() {

document.URL = url;
postMessage({ type: 'Location', href: url });
sendLocationDirective({ type: 'assign', prop: 'href', val: url });
},
replace(url) {
document.URL = url;
sendLocationDirective({ type: 'call', prop: 'replace', args: [url] });
},
reload() {
sendLocationDirective({ type: 'call', prop: 'reload' });
},
};

@@ -40,0 +48,0 @@ }

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