@liff/extensions
Advanced tools
Comparing version 2.23.1 to 2.23.2
@@ -1,1 +0,1 @@ | ||
import{INIT_FAILED as t}from"@liff/consts";import{createLiffError as n,compareVersion as e}from"@liff/util";import{getOS as o}from"@liff/get-os";import{getLineVersion as r}from"@liff/get-line-version";import{LiffModule as i}from"@liff/use";var c=function(t,n){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},c(t,n)};function u(t,n,e,o){return new(e||(e=Promise))((function(r,i){function c(t){try{l(o.next(t))}catch(n){i(n)}}function u(t){try{l(o.throw(t))}catch(n){i(n)}}function l(t){var n;t.done?r(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(c,u)}l((o=o.apply(t,n||[])).next())}))}function l(t,n){var e,o,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;c;)try{if(e=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,o=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=c.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=n.call(t,c)}catch(u){i=[6,u],o=0}finally{e=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var s=!1,a=function(){return s},f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}c(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return"_legacyExtensionsEnabled"},enumerable:!1,configurable:!0}),n.prototype.install=function(){s=!0},n}(i);function p(){var t;return"ios"===o()?(t=r())&&e(t,"9.19.0")<0?"https://static.line-scdn.net/liff/edge/2/ios-918-extensions_2_22_0.js":"https://static.line-scdn.net/liff/edge/2/ios-extensions_2_22_0.js":"https://static.line-scdn.net/liff/edge/2/non-ios-extensions_2_22_0.js"}function y(){return a()?function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[3,2];case 1:return[2,e.sent().default];case 2:return[2,new Promise((function(e,o){var r=document.createElement("script"),i=p();r.onload=function(){var r=window.liffClientExtension;r?e(r):o(n(t,"Unable to load client features. (Extension is empty)"))},r.onerror=function(){o(n(t,"Unable to load client features."))},r.src=i,r.type="text/javascript",document.body.appendChild(r)}))]}}))}))}():Promise.resolve(void 0)}export{f as LegacyExtensionsModule,y as load}; | ||
import{INIT_FAILED as t}from"@liff/consts";import{createLiffError as n,compareVersion as e}from"@liff/util";import{getOS as o}from"@liff/get-os";import{getLineVersion as r}from"@liff/get-line-version";import{LiffModule as i}from"@liff/use";var c=function(t,n){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},c(t,n)};function u(t,n,e,o){return new(e||(e=Promise))((function(r,i){function c(t){try{l(o.next(t))}catch(n){i(n)}}function u(t){try{l(o.throw(t))}catch(n){i(n)}}function l(t){var n;t.done?r(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(c,u)}l((o=o.apply(t,n||[])).next())}))}function l(t,n){var e,o,r,i,c={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;c;)try{if(e=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,o=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(r=c.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){c.label=i[1];break}if(6===i[0]&&c.label<r[1]){c.label=r[1],r=i;break}if(r&&c.label<r[2]){c.label=r[2],c.ops.push(i);break}r[2]&&c.ops.pop(),c.trys.pop();continue}i=n.call(t,c)}catch(u){i=[6,u],o=0}finally{e=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var s=!1,a=function(){return s},f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}c(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return"_legacyExtensionsEnabled"},enumerable:!1,configurable:!0}),n.prototype.install=function(){s=!0},n}(i);function p(){var t;return"ios"===o()?(t=r())&&e(t,"9.19.0")<0?"https://static.line-scdn.net/liff/edge/2/ios-918-extensions_2_22_0.js":"https://static.line-scdn.net/liff/edge/2/ios-extensions_2_22_0.js":"https://static.line-scdn.net/liff/edge/2/non-ios-extensions_2_22_0.js"}function y(){return a()?function(){return u(this,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return[3,2];case 1:return[2,e.sent().default];case 2:return[2,new Promise((function(e,o){var r=document.createElement("script"),i=p();r.onload=function(){var r=window.liffClientExtension;r?e(r):o(n(t,"Unable to load client features. (Extension is empty)"))},r.onerror=function(e){o(n(t,"Unable to load client features.",{cause:e}))},r.src=i,r.type="text/javascript",document.body.appendChild(r)}))]}}))}))}():Promise.resolve(void 0)}export{f as LegacyExtensionsModule,y as load}; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@liff/consts"),t=require("@liff/util"),n=require("@liff/get-os"),r=require("@liff/get-line-version"),o=require("@liff/use"),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function u(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(t){i(t)}}function c(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}s((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var s=!1,l=function(){return s},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"_legacyExtensionsEnabled"},enumerable:!1,configurable:!0}),t.prototype.install=function(){s=!0},t}(o.LiffModule);function f(){var e;return"ios"===n.getOS()?(e=r.getLineVersion())&&t.compareVersion(e,"9.19.0")<0?"https://static.line-scdn.net/liff/edge/2/ios-918-extensions_2_22_0.js":"https://static.line-scdn.net/liff/edge/2/ios-extensions_2_22_0.js":"https://static.line-scdn.net/liff/edge/2/non-ios-extensions_2_22_0.js"}exports.LegacyExtensionsModule=a,exports.load=function(){return l()?function(){return u(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[3,2];case 1:return[2,n.sent().default];case 2:return[2,new Promise((function(n,r){var o=document.createElement("script"),i=f();o.onload=function(){var o=window.liffClientExtension;o?n(o):r(t.createLiffError(e.INIT_FAILED,"Unable to load client features. (Extension is empty)"))},o.onerror=function(){r(t.createLiffError(e.INIT_FAILED,"Unable to load client features."))},o.src=i,o.type="text/javascript",document.body.appendChild(o)}))]}}))}))}():Promise.resolve(void 0)}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@liff/consts"),t=require("@liff/util"),n=require("@liff/get-os"),r=require("@liff/get-line-version"),o=require("@liff/use"),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function u(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(t){i(t)}}function c(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}s((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var s=!1,l=function(){return s},a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"_legacyExtensionsEnabled"},enumerable:!1,configurable:!0}),t.prototype.install=function(){s=!0},t}(o.LiffModule);function f(){var e;return"ios"===n.getOS()?(e=r.getLineVersion())&&t.compareVersion(e,"9.19.0")<0?"https://static.line-scdn.net/liff/edge/2/ios-918-extensions_2_22_0.js":"https://static.line-scdn.net/liff/edge/2/ios-extensions_2_22_0.js":"https://static.line-scdn.net/liff/edge/2/non-ios-extensions_2_22_0.js"}exports.LegacyExtensionsModule=a,exports.load=function(){return l()?function(){return u(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[3,2];case 1:return[2,n.sent().default];case 2:return[2,new Promise((function(n,r){var o=document.createElement("script"),i=f();o.onload=function(){var o=window.liffClientExtension;o?n(o):r(t.createLiffError(e.INIT_FAILED,"Unable to load client features. (Extension is empty)"))},o.onerror=function(n){r(t.createLiffError(e.INIT_FAILED,"Unable to load client features.",{cause:n}))},o.src=i,o.type="text/javascript",document.body.appendChild(o)}))]}}))}))}():Promise.resolve(void 0)}; |
{ | ||
"name": "@liff/extensions", | ||
"version": "2.23.1", | ||
"version": "2.23.2", | ||
"description": "@liff/extensions", | ||
@@ -34,13 +34,13 @@ "license": "SEE LICENSE IN README.md", | ||
"dependencies": { | ||
"@liff/add-to-home-screen": "2.23.1", | ||
"@liff/check-availability": "2.23.1", | ||
"@liff/consts": "2.23.1", | ||
"@liff/get-advertising-id": "2.23.1", | ||
"@liff/get-line-version": "2.23.1", | ||
"@liff/get-os": "2.23.1", | ||
"@liff/logger": "2.23.1", | ||
"@liff/scan-code": "2.23.1", | ||
"@liff/store": "2.23.1", | ||
"@liff/types": "2.23.1", | ||
"@liff/util": "2.23.1" | ||
"@liff/add-to-home-screen": "2.23.2", | ||
"@liff/check-availability": "2.23.2", | ||
"@liff/consts": "2.23.2", | ||
"@liff/get-advertising-id": "2.23.2", | ||
"@liff/get-line-version": "2.23.2", | ||
"@liff/get-os": "2.23.2", | ||
"@liff/logger": "2.23.2", | ||
"@liff/scan-code": "2.23.2", | ||
"@liff/store": "2.23.2", | ||
"@liff/types": "2.23.2", | ||
"@liff/util": "2.23.2" | ||
}, | ||
@@ -47,0 +47,0 @@ "devDependencies": { |
13692
+ Added@liff/add-to-home-screen@2.23.2(transitive)
+ Added@liff/check-availability@2.23.2(transitive)
+ Added@liff/consts@2.23.2(transitive)
+ Added@liff/get-advertising-id@2.23.2(transitive)
+ Added@liff/get-line-version@2.23.2(transitive)
+ Added@liff/get-os@2.23.2(transitive)
+ Added@liff/get-version@2.23.2(transitive)
+ Added@liff/hooks@2.23.2(transitive)
+ Added@liff/is-api-available@2.23.2(transitive)
+ Added@liff/is-in-client@2.23.2(transitive)
+ Added@liff/is-logged-in@2.23.2(transitive)
+ Added@liff/is-sub-window@2.23.2(transitive)
+ Added@liff/logger@2.23.2(transitive)
+ Added@liff/native-bridge@2.23.2(transitive)
+ Added@liff/open-window@2.23.2(transitive)
+ Added@liff/scan-code@2.23.2(transitive)
+ Added@liff/store@2.23.2(transitive)
+ Added@liff/types@2.23.2(transitive)
+ Added@liff/use@2.23.2(transitive)
+ Added@liff/util@2.23.2(transitive)
- Removed@liff/add-to-home-screen@2.23.1(transitive)
- Removed@liff/check-availability@2.23.1(transitive)
- Removed@liff/consts@2.23.1(transitive)
- Removed@liff/get-advertising-id@2.23.1(transitive)
- Removed@liff/get-line-version@2.23.1(transitive)
- Removed@liff/get-os@2.23.1(transitive)
- Removed@liff/get-version@2.23.1(transitive)
- Removed@liff/hooks@2.23.1(transitive)
- Removed@liff/is-api-available@2.23.1(transitive)
- Removed@liff/is-in-client@2.23.1(transitive)
- Removed@liff/is-logged-in@2.23.1(transitive)
- Removed@liff/is-sub-window@2.23.1(transitive)
- Removed@liff/logger@2.23.1(transitive)
- Removed@liff/native-bridge@2.23.1(transitive)
- Removed@liff/open-window@2.23.1(transitive)
- Removed@liff/scan-code@2.23.1(transitive)
- Removed@liff/store@2.23.1(transitive)
- Removed@liff/types@2.23.1(transitive)
- Removed@liff/use@2.23.1(transitive)
- Removed@liff/util@2.23.1(transitive)
Updated@liff/consts@2.23.2
Updated@liff/get-os@2.23.2
Updated@liff/logger@2.23.2
Updated@liff/scan-code@2.23.2
Updated@liff/store@2.23.2
Updated@liff/types@2.23.2
Updated@liff/util@2.23.2