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

invoker-core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

invoker-core - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

lib/InvokerDriver.js

2

lib/index.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvokeDriver=void 0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_InvokeDriver=require("./InvokeDriver"),_InvokeDriver2=_interopRequireDefault(_InvokeDriver);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var currentDriver=new _InvokeDriver2.default,before={},after={};exports.default=Invoke={Attach:function b(a){return a instanceof _InvokeDriver2.default?void(currentDriver=a):void console.error("Driver is not an invoke driver")},Before:function c(a,b){_typeof(before[a])===void 0&&(before[a]=[]),before[a].push(b)},After:function c(a,b){_typeof(before[a])===void 0&&(after[a]=[]),after[a].push(b)},Call:function b(a){return before[a]&&before[a].forEach(function(a){return a()}),currentDriver.execute(a).then(function(){after[a]&&after[a].forEach(function(a){return a()})})}},exports.InvokeDriver=_InvokeDriver2.default;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvokerDriver=void 0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_InvokerDriver=require("./InvokerDriver"),_InvokerDriver2=_interopRequireDefault(_InvokerDriver);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var currentDriver=new _InvokerDriver2.default,before={},after={};exports.default=Invoker={Attach:function b(a){return a instanceof _InvokerDriver2.default?void(currentDriver=a):void console.error("Driver is not an invoker driver")},Before:function c(a,b){_typeof(before[a])===void 0&&(before[a]=[]),before[a].push(b)},After:function c(a,b){_typeof(before[a])===void 0&&(after[a]=[]),after[a].push(b)},Call:function b(a){return before[a]&&before[a].forEach(function(a){return a()}),currentDriver.execute(a).then(function(){after[a]&&after[a].forEach(function(a){return a()})})}},exports.InvokerDriver=_InvokerDriver2.default;
{
"name": "invoker-core",
"version": "1.0.0",
"version": "1.0.2",
"description": "InvokeJS is simple yet powerful endpoint proxy for your client",

@@ -24,3 +24,3 @@ "main": "./lib/index.js",

"type": "git",
"url": "git+https://github.com/nikandlv/invoke-js.git"
"url": "git+https://github.com/nikandlv/invoker-core.git"
},

@@ -37,5 +37,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/nikandlv/invoke-js.git/issues"
"url": "https://github.com/nikandlv/invoker-core.git/issues"
},
"homepage": "https://github.com/nikandlv/invoke-js.git#readme",
"homepage": "https://github.com/nikandlv/invoker-core.git#readme",
"devDependencies": {

@@ -42,0 +42,0 @@ "babel-cli": "^6.26.0",

@@ -1,11 +0,11 @@

import InvokeDriver from "./InvokeDriver";
import InvokerDriver from "./InvokerDriver";
let currentDriver = new InvokeDriver();
let currentDriver = new InvokerDriver();
let before = {};
let after = {};
export default Invoke = {
export default Invoker = {
Attach(driver) {
if (!(driver instanceof InvokeDriver)) {
console.error("Driver is not an invoke driver");
if (!(driver instanceof InvokerDriver)) {
console.error("Driver is not an invoker driver");
return;

@@ -39,2 +39,2 @@ }

export { InvokeDriver };
export { InvokerDriver };
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