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

array-buffer-cache-worker

Package Overview
Dependencies
Maintainers
1
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-buffer-cache-worker - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

19

package.json

@@ -18,4 +18,5 @@ {

"chai": "^4.1.2",
"eslint-config-holy-grail": "^20.0.0",
"greenkeeper-lockfile": "^1.8.1",
"eslint": "^4.6.1",
"eslint-config-holy-grail": "^22.0.0",
"greenkeeper-lockfile": "^1.9.0",
"grunt": "^1.0.1",

@@ -40,13 +41,13 @@ "grunt-cli": "^1.2.0",

"load-grunt-config": "^0.19.2",
"mocha": "^3.5.0",
"rollup": "^0.49.2",
"mocha": "^3.5.3",
"rollup": "^0.49.3",
"rollup-plugin-babel": "^3.0.2",
"sinon": "^3.2.1",
"sinon-chai": "^2.13.0",
"ts-loader": "^2.3.4",
"tsconfig-holy-grail": "^2.4.0",
"ts-loader": "^2.3.7",
"tsconfig-holy-grail": "^2.4.2",
"tslint": "^5.7.0",
"tslint-config-holy-grail": "^11.0.1",
"tslint-config-holy-grail": "^13.0.0",
"typescript": "^2.5.2",
"webpack": "^3.5.5"
"webpack": "^3.5.6"
},

@@ -74,3 +75,3 @@ "files": [

"types": "build/es2015/module.d.ts",
"version": "2.1.5"
"version": "2.1.6"
}

@@ -13,3 +13,3 @@ export class ArrayBufferStore {

if (arrayBuffer === undefined) {
throw new Error(`There is no arrayBuffer stored with an id called "${ id }".`);
throw new Error(`There is no arrayBuffer stored with an id called "${ id }".`);
}

@@ -24,3 +24,3 @@

if (!arrayBufferExisted) {
throw new Error(`There is no arrayBuffer stored with an id called "${ id }".`);
throw new Error(`There is no arrayBuffer stored with an id called "${ id }".`);
}

@@ -33,3 +33,3 @@ }

if (arrayBuffer === undefined) {
throw new Error(`There is no arrayBuffer stored with an id called "${ id }".`);
throw new Error(`There is no arrayBuffer stored with an id called "${ id }".`);
}

@@ -44,3 +44,3 @@

if (this._store.has(id)) {
throw new Error(`There is already an arrayBuffer stored with an id called "${ id }".`);
throw new Error(`There is already an arrayBuffer stored with an id called "${ id }".`);
}

@@ -47,0 +47,0 @@

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

import { ArrayBufferStore } from './helpers/array-buffer-store';
import { ArrayBufferStore } from './helpers/array-buffer-store';
import {

@@ -21,3 +21,3 @@ IBrokerEvent,

if (data.method === 'clone') {
const { id, params: { arrayBufferId } } = data;
const { id, params: { arrayBufferId } } = data;

@@ -41,3 +41,3 @@ const arrayBuffer = arrayBufferStore.clone(arrayBufferId);

} else if (data.method === 'purge') {
const { id, params: { arrayBufferId } } = data;
const { id, params: { arrayBufferId } } = data;

@@ -48,3 +48,3 @@ arrayBufferStore.purge(arrayBufferId);

} else if (data.method === 'slice') {
const { id, params: { arrayBufferId, begin, end = null } } = data;
const { id, params: { arrayBufferId, begin, end = null } } = data;

@@ -55,3 +55,3 @@ const arrayBuffer = arrayBufferStore.slice(arrayBufferId, begin, end);

} else if (data.method === 'store') {
const { id, params: { arrayBuffer, arrayBufferId } } = data;
const { id, params: { arrayBuffer, arrayBufferId } } = data;

@@ -58,0 +58,0 @@ arrayBufferStore.store(arrayBufferId, arrayBuffer);

import { ICloneRequest, IConnectRequest, IDisconnectRequest, IPurgeRequest, ISliceRequest, IStoreRequest } from '../interfaces';
export type TBrokerMessage = ICloneRequest | IConnectRequest | IDisconnectRequest | IPurgeRequest | ISliceRequest | IStoreRequest;
export type TBrokerMessage = ICloneRequest | IConnectRequest | IDisconnectRequest | IPurgeRequest | ISliceRequest | IStoreRequest;

@@ -14,5 +14,5 @@ import {

IDisconnectResponse |
IErrorResponse |
IErrorResponse |
IPurgeResponse |
ISliceResponse |
IStoreResponse;
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