Huge News!Announcing our $40M Series B led by Abstract Ventures.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.7 to 1.0.8

2

lib/index.js

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

"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}}function _toConsumableArray(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return Array.from(a)}var currentDriver=new _InvokerDriver2.default,before={},after={},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]=[].concat(_toConsumableArray(before[a]),[b])},After:function c(a,b){_typeof(after[a])===void 0&&(after[a]=[]),after[a]=[].concat(_toConsumableArray(after[a]),[b])},Call:function c(a,b){return before[a]&&before[a].forEach(function(a){return a()}),currentDriver.execute(a,b).then(function(){after[a]&&after[a].forEach(function(a){return a()})})}};exports.InvokerDriver=_InvokerDriver2.default,exports.default=Invoker;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvokerDriver=void 0;var _InvokerDriver=require("./InvokerDriver"),_InvokerDriver2=_interopRequireDefault(_InvokerDriver);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _toConsumableArray(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return Array.from(a)}var currentDriver=new _InvokerDriver2.default,before={},after={},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){"undefined"==typeof before[a]&&(before[a]=[]),before[a]=[].concat(_toConsumableArray(before[a]),[b])},After:function c(a,b){"undefined"==typeof after[a]&&(after[a]=[]),after[a]=[].concat(_toConsumableArray(after[a]),[b])},Call:function c(a,b){return before[a]&&before[a].forEach(function(a){return a()}),currentDriver.execute(a,b).then(function(){after[a]&&after[a].forEach(function(a){return a()})})}};exports.InvokerDriver=_InvokerDriver2.default,exports.default=Invoker;
{
"name": "invoker-core",
"version": "1.0.7",
"version": "1.0.8",
"description": "InvokeJS is simple yet powerful endpoint proxy for your client",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -16,3 +16,3 @@ import InvokerDriver from "./InvokerDriver";

Before(target, handler) {
if (typeof before[target] === undefined) {
if (typeof before[target] === "undefined") {
before[target] = [];

@@ -23,3 +23,3 @@ }

After(target, handler) {
if (typeof after[target] === undefined) {
if (typeof after[target] === "undefined") {
after[target] = [];

@@ -26,0 +26,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