@shopgate/pwa-core 7.6.0 → 7.6.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import _regeneratorRuntime from"@babel/runtime/regenerator";function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}function _iterableToArrayLimit(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}import MobileDetect from'mobile-detect';import detector from'detector';import{logger,hasSGJavaScriptBridge}from"./index";import getWebStorageEntry from"../commands/getWebStorageEntry";var MODE_AT_MOST='at_most';var MODE_AT_LEAST='at_least';export var PLATFORM_ANDROID='android';export var PLATFORM_IOS='ios';export var MIN_ANDROID_LIB_VERSION='13.0';var versions=null;var requesting=false;var md=new MobileDetect(navigator.userAgent);export var isAndroidOs=md.is('AndroidOS');var fullVersion=_typeof(detector)==='object'&&detector.os?detector.os.fullVersion:null;// Eslint doesn't allow to use one liner here.
1
+ import _regeneratorRuntime from"@babel/runtime/regenerator";function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}function _iterableToArrayLimit(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}import MobileDetect from'mobile-detect';import detector from'detector';import{logger,hasSGJavaScriptBridge}from"./index";import getWebStorageEntry from"../commands/getWebStorageEntry";var MODE_AT_MOST='at_most';var MODE_AT_LEAST='at_least';export var PLATFORM_ANDROID='android';export var PLATFORM_IOS='ios';export var MIN_ANDROID_LIB_VERSION='13.0';var versions=null;var requesting=false;var md=new MobileDetect(navigator.userAgent);export var isAndroidOs=md.is('AndroidOS');export var isIOs=md.is('iOS');var fullVersion=_typeof(detector)==='object'&&detector.os?detector.os.fullVersion:null;// Eslint doesn't allow to use one liner here.
2
2
  var model=null;if(fullVersion){model=isAndroidOs?'Android':"iPhone".concat(fullVersion);}export var defaultClientInformation={libVersion:'21.0',appVersion:'5.18.0',codebaseVersion:'5.18.0',type:!md.tablet()?'phone':'tablet',device:{type:!md.tablet()?'phone':'tablet',os:{platform:isAndroidOs?PLATFORM_ANDROID:PLATFORM_IOS,ver:fullVersion},model:model},supportedAnalyticsServices:[]};/**
3
3
  * Waits till a passed handler function returns TRUE and resolves.
4
4
  * @param {Function} handler Handler function which checks a condition to resolve.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-core",
3
- "version": "7.6.0",
3
+ "version": "7.6.1-beta.3",
4
4
  "description": "Core library for the Shopgate Connect PWA.",
5
5
  "author": "Support <support@shopgate.com>",
6
6
  "license": "Apache-2.0",