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

@liff/use

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liff/use - npm Package Compare versions

Comparing version 2.21.1 to 2.21.2

2

lib/context.d.ts

@@ -7,3 +7,3 @@ import { ModuleDriver, ModuleContext, ApiHooks, LiffPluginContext } from './types';

hooks: import("./types").HooksRegisters<import("./types").OfficialHooks & Hooks>;
internalHooks: import("./types").HooksRegisters<import("./types").InternallHooks & Record<string, import("./types").HookTimings>>;
internalHooks: import("./types").HooksRegisters<import("./types").InternallHooks & ApiHooks>;
}

@@ -10,0 +10,0 @@ export declare class LiffPluginContextImpl<Liff, Hooks extends ApiHooks = never> implements LiffPluginContext<Liff> {

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@liff/logger"),i=function(e,t){this._driver=e,this.liff=t,this.hooks=this._driver.hooks,this.internalHooks=this._driver.internalHooks},n=function(e,t){this._driver=e,this.liff=t,this.hooks=this._driver.hooks},o=function(){function t(){this.modules=new Map,this.hooks={},this.internalHooks={}}return t.prototype.addModule=function(t,i){this.modules.set(t,i),i.hooks&&(this.hooks[t]=Object.entries(i.hooks).reduce((function(t,i){var n,o=e.__read(i,2),r=o[0],s=o[1];return e.__assign(e.__assign({},t),((n={})[r]=s.on.bind(s),n))}),{})),i.internalHooks&&(this.internalHooks[t]=Object.entries(i.internalHooks).reduce((function(t,i){var n,o=e.__read(i,2),r=o[0],s=o[1];return e.__assign(e.__assign({},t),((n={})[r]=s.on.bind(s),n))}),{}))},t.prototype.hasModule=function(e){return this.modules.has(e)},t}(),r=function(){function e(e,t,i){this.driver=e,this.context=t,this.option=i}return e.prototype.install=function(){return this.factory(this.driver,this.context)},Object.defineProperty(e.prototype,"name",{get:function(){return"use"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultOption",{get:function(){return{namespacePrefix:"$"}},enumerable:!1,configurable:!0}),e.prototype.factory=function(e,i){var n=Object.assign({},this.defaultOption,this.option).namespacePrefix;return function(o,r){if(!o||"function"!=typeof o.install||"string"!=typeof o.name)return t.logger.warn("To install the plugin, you need to define the `name` property and the `install` method."),this;var s=""+n+o.name;if(e.hasModule(s))return this;var u=o.install.call(o,i,r);return this[""+s]?(t.logger.warn("There is a duplicate plugin name. `"+s+"` plugin namespace will be override."),this[""+s]=u):void 0!==u&&(this[""+s]=u),e.addModule(s,o),this}},e}();exports.LiffPluginContextImpl=n,exports.ModuleContextImpl=i,exports.ModuleDriverImpl=o,exports.UseModule=r;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("@liff/logger"),n=function(t,e){this._driver=t,this.liff=e,this.hooks=this._driver.hooks,this.internalHooks=this._driver.internalHooks},o=function(t,e){this._driver=t,this.liff=e,this.hooks=this._driver.hooks},i=function(){function e(){this.modules=new Map,this.hooks={},this.internalHooks={}}return e.prototype.addModule=function(e,n){this.modules.set(e,n),n.hooks&&(this.hooks[e]=Object.entries(n.hooks).reduce((function(e,n){var o,i=t.__read(n,2),r=i[0],s=i[1];return t.__assign(t.__assign({},e),((o={})[r]=s.on.bind(s),o))}),{})),n.internalHooks&&(this.internalHooks[e]=Object.entries(n.internalHooks).reduce((function(e,n){var o,i=t.__read(n,2),r=i[0],s=i[1];return t.__assign(t.__assign({},e),((o={})[r]=s.on.bind(s),o))}),{}))},e.prototype.hasModule=function(t){return this.modules.has(t)},e}(),r=function(){function t(t,e,n){this.driver=t,this.context=e,this.option=n}return t.prototype.install=function(){return this.factory(this.driver,this.context)},Object.defineProperty(t.prototype,"name",{get:function(){return"use"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultOption",{get:function(){return{namespacePrefix:"$"}},enumerable:!1,configurable:!0}),t.prototype.factory=function(t,n){var o=Object.assign({},this.defaultOption,this.option).namespacePrefix;return function(i,r){if(!i||"function"!=typeof i.install||"string"!=typeof i.name)return e.logger.warn("To install the plugin, you need to define the `name` property and the `install` method."),this;var s="".concat(o).concat(i.name);if(t.hasModule(s))return this;var a=i.install.call(i,n,r);return this["".concat(s)]?(e.logger.warn("There is a duplicate plugin name. `".concat(s,"` plugin namespace will be override.")),this["".concat(s)]=a):void 0!==a&&(this["".concat(s)]=a),t.addModule(s,i),this}},t}();exports.LiffPluginContextImpl=o,exports.ModuleContextImpl=n,exports.ModuleDriverImpl=i,exports.UseModule=r;

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

import{__read as t,__assign as e}from"tslib";import{logger as i}from"@liff/logger";var n=function(t,e){this._driver=t,this.liff=e,this.hooks=this._driver.hooks,this.internalHooks=this._driver.internalHooks},o=function(t,e){this._driver=t,this.liff=e,this.hooks=this._driver.hooks},r=function(){function i(){this.modules=new Map,this.hooks={},this.internalHooks={}}return i.prototype.addModule=function(i,n){this.modules.set(i,n),n.hooks&&(this.hooks[i]=Object.entries(n.hooks).reduce((function(i,n){var o,r=t(n,2),s=r[0],a=r[1];return e(e({},i),((o={})[s]=a.on.bind(a),o))}),{})),n.internalHooks&&(this.internalHooks[i]=Object.entries(n.internalHooks).reduce((function(i,n){var o,r=t(n,2),s=r[0],a=r[1];return e(e({},i),((o={})[s]=a.on.bind(a),o))}),{}))},i.prototype.hasModule=function(t){return this.modules.has(t)},i}(),s=function(){function t(t,e,i){this.driver=t,this.context=e,this.option=i}return t.prototype.install=function(){return this.factory(this.driver,this.context)},Object.defineProperty(t.prototype,"name",{get:function(){return"use"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultOption",{get:function(){return{namespacePrefix:"$"}},enumerable:!1,configurable:!0}),t.prototype.factory=function(t,e){var n=Object.assign({},this.defaultOption,this.option).namespacePrefix;return function(o,r){if(!o||"function"!=typeof o.install||"string"!=typeof o.name)return i.warn("To install the plugin, you need to define the `name` property and the `install` method."),this;var s=""+n+o.name;if(t.hasModule(s))return this;var a=o.install.call(o,e,r);return this[""+s]?(i.warn("There is a duplicate plugin name. `"+s+"` plugin namespace will be override."),this[""+s]=a):void 0!==a&&(this[""+s]=a),t.addModule(s,o),this}},t}();export{o as LiffPluginContextImpl,n as ModuleContextImpl,r as ModuleDriverImpl,s as UseModule};
import{__read as t,__assign as e}from"tslib";import{logger as n}from"@liff/logger";var o=function(t,e){this._driver=t,this.liff=e,this.hooks=this._driver.hooks,this.internalHooks=this._driver.internalHooks},i=function(t,e){this._driver=t,this.liff=e,this.hooks=this._driver.hooks},r=function(){function n(){this.modules=new Map,this.hooks={},this.internalHooks={}}return n.prototype.addModule=function(n,o){this.modules.set(n,o),o.hooks&&(this.hooks[n]=Object.entries(o.hooks).reduce((function(n,o){var i,r=t(o,2),s=r[0],a=r[1];return e(e({},n),((i={})[s]=a.on.bind(a),i))}),{})),o.internalHooks&&(this.internalHooks[n]=Object.entries(o.internalHooks).reduce((function(n,o){var i,r=t(o,2),s=r[0],a=r[1];return e(e({},n),((i={})[s]=a.on.bind(a),i))}),{}))},n.prototype.hasModule=function(t){return this.modules.has(t)},n}(),s=function(){function t(t,e,n){this.driver=t,this.context=e,this.option=n}return t.prototype.install=function(){return this.factory(this.driver,this.context)},Object.defineProperty(t.prototype,"name",{get:function(){return"use"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultOption",{get:function(){return{namespacePrefix:"$"}},enumerable:!1,configurable:!0}),t.prototype.factory=function(t,e){var o=Object.assign({},this.defaultOption,this.option).namespacePrefix;return function(i,r){if(!i||"function"!=typeof i.install||"string"!=typeof i.name)return n.warn("To install the plugin, you need to define the `name` property and the `install` method."),this;var s="".concat(o).concat(i.name);if(t.hasModule(s))return this;var a=i.install.call(i,e,r);return this["".concat(s)]?(n.warn("There is a duplicate plugin name. `".concat(s,"` plugin namespace will be override.")),this["".concat(s)]=a):void 0!==a&&(this["".concat(s)]=a),t.addModule(s,i),this}},t}();export{i as LiffPluginContextImpl,o as ModuleContextImpl,r as ModuleDriverImpl,s as UseModule};
{
"name": "@liff/use",
"version": "2.21.1",
"version": "2.21.2",
"description": "@liff/use",

@@ -24,5 +24,5 @@ "license": "SEE LICENSE IN README.md",

"build:npm": "rollup -c rollup.config.js",
"build:watch": "yarn build:npm -w --watch.include './src/**'",
"dev-server": "yarn build:watch",
"dev-server:https": "yarn build:watch",
"build:watch": "npm run build:npm -- --watch",
"dev-server": "npm run build:watch",
"dev-server:https": "npm run build:watch",
"build:prerelease": "rollup -c rollup.config.prerelease.js",

@@ -32,4 +32,4 @@ "clean": "rm -rf ./lib ./tsconfig.tsbuildinfo"

"dependencies": {
"@liff/hooks": "2.21.1",
"@liff/logger": "2.21.1"
"@liff/hooks": "2.21.2",
"@liff/logger": "2.21.2"
},

@@ -39,3 +39,3 @@ "peerDependencies": {

},
"gitHead": "9af2e0816a5cd5547b99e8cadba3ee274b270a9a"
"gitHead": "b43eee22bc2c90b85e9919820c557cc15fb9712c"
}
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