From 3cf5e5a97afe8fc7877b528cf19130bef0d68bad Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 10 Sep 2020 14:35:21 +0200 Subject: build the app --- .../plugins/es6-promise-plugin/CHANGELOG.md | 9 ++++ StoneIsland/plugins/es6-promise-plugin/LICENSE | 21 +++++++++ StoneIsland/plugins/es6-promise-plugin/README.md | 36 +++++++++++++++ .../plugins/es6-promise-plugin/package.json | 51 ++++++++++++++++++++++ StoneIsland/plugins/es6-promise-plugin/plugin.xml | 27 ++++++++++++ .../plugins/es6-promise-plugin/www/promise.js | 10 +++++ 6 files changed, 154 insertions(+) create mode 100644 StoneIsland/plugins/es6-promise-plugin/CHANGELOG.md create mode 100644 StoneIsland/plugins/es6-promise-plugin/LICENSE create mode 100644 StoneIsland/plugins/es6-promise-plugin/README.md create mode 100644 StoneIsland/plugins/es6-promise-plugin/package.json create mode 100644 StoneIsland/plugins/es6-promise-plugin/plugin.xml create mode 100644 StoneIsland/plugins/es6-promise-plugin/www/promise.js (limited to 'StoneIsland/plugins/es6-promise-plugin') diff --git a/StoneIsland/plugins/es6-promise-plugin/CHANGELOG.md b/StoneIsland/plugins/es6-promise-plugin/CHANGELOG.md new file mode 100644 index 00000000..231dd35a --- /dev/null +++ b/StoneIsland/plugins/es6-promise-plugin/CHANGELOG.md @@ -0,0 +1,9 @@ +# 4.2.2 / 2017-12-27 + +* updated to es6-promise 4.2.2 +* added browser platform support + +# 4.1.1 / 2017-09-12 + +* updated to es6-promise 4.1.1 +* updated build script diff --git a/StoneIsland/plugins/es6-promise-plugin/LICENSE b/StoneIsland/plugins/es6-promise-plugin/LICENSE new file mode 100644 index 00000000..8a4d435c --- /dev/null +++ b/StoneIsland/plugins/es6-promise-plugin/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-15 Vlad Stirbu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/StoneIsland/plugins/es6-promise-plugin/README.md b/StoneIsland/plugins/es6-promise-plugin/README.md new file mode 100644 index 00000000..e8cb30f9 --- /dev/null +++ b/StoneIsland/plugins/es6-promise-plugin/README.md @@ -0,0 +1,36 @@ +# PromisesPlugin + +ES6-Promises polyfill for Cordova/PhoneGap + +# Motivation + +The web view components on Cordova supported platforms lack suport for ES6 Promise. A polyfill library bundled with the plugin fixes the limitation. However, as more plugin use promises, the application developer using these plugins will end up with multiple promise polyfill libraries. + +This plugin attempts to fix this situation by providing a Promise polyfill so that other plugins can rely on this functionality. + +# How to use + +Configure your plugin's plugin.xml by adding this dependency: + +``` + +``` + +Cordova CLI takes care to install PromisesPlugin automatically: + +``` +$ cordova plugins add {yourPlugin} + +> Installing "{yourPlugin}" for {platform} +> Installing "es6-promise-plugin" for {platform} +``` + +This is all. ```window.Promise``` is available for use in your plugin. + +# Credits + +This plugin wraps [es6-promise](https://github.com/jakearchibald/es6-promise) in a Cordova/PhoneGap friendly way. + +# License + +The plugin is available under MIT license. diff --git a/StoneIsland/plugins/es6-promise-plugin/package.json b/StoneIsland/plugins/es6-promise-plugin/package.json new file mode 100644 index 00000000..44d89413 --- /dev/null +++ b/StoneIsland/plugins/es6-promise-plugin/package.json @@ -0,0 +1,51 @@ +{ + "_from": "es6-promise-plugin", + "_id": "es6-promise-plugin@4.2.2", + "_inBundle": false, + "_integrity": "sha512-uoA4aVplXI9oqUYJFBAVRwAqIN9/n9JgrTAUGX3qPbnSZVE5yY1+6/MsoN5f4xsaPO62WjPHOdtts6okMN6tNA==", + "_location": "/es6-promise-plugin", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "es6-promise-plugin", + "name": "es6-promise-plugin", + "escapedName": "es6-promise-plugin", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#DEV:/", + "#USER" + ], + "_resolved": "https://registry.npmjs.org/es6-promise-plugin/-/es6-promise-plugin-4.2.2.tgz", + "_shasum": "cfa0cc1383d91f999a62a2bbf4bd97bec305e0ac", + "_spec": "es6-promise-plugin", + "_where": "/Users/user/work/stone-island/StoneIsland", + "author": "", + "bugs": { + "url": "https://github.com/vstirbu/PromisesPlugin/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "ES6-Promises polyfill for Cordova/PhoneGap", + "devDependencies": { + "browserify": "^14.4.0", + "es6-promise": "^4.2.2" + }, + "ecosystem": "cordova", + "homepage": "https://github.com/vstirbu/PromisesPlugin#readme", + "license": "MIT", + "main": "www/promise.js", + "name": "es6-promise-plugin", + "repository": { + "type": "git", + "url": "git+https://github.com/vstirbu/PromisesPlugin.git" + }, + "scripts": { + "build": "./build" + }, + "version": "4.2.2" +} diff --git a/StoneIsland/plugins/es6-promise-plugin/plugin.xml b/StoneIsland/plugins/es6-promise-plugin/plugin.xml new file mode 100644 index 00000000..ee32c3ca --- /dev/null +++ b/StoneIsland/plugins/es6-promise-plugin/plugin.xml @@ -0,0 +1,27 @@ + + + Promise + Vlad Stirbu + MIT + es6-promise,polyfill + + + A polyfill for ES6-style Promises, tracking npm es6-promise + + + + + + + + + + + + + + + diff --git a/StoneIsland/plugins/es6-promise-plugin/www/promise.js b/StoneIsland/plugins/es6-promise-plugin/www/promise.js new file mode 100644 index 00000000..4f8a0f41 --- /dev/null +++ b/StoneIsland/plugins/es6-promise-plugin/www/promise.js @@ -0,0 +1,10 @@ +/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.2+97478eb6 + */ + +!function t(e,n,r){function o(u,s){if(!n[u]){if(!e[u]){var c="function"==typeof require&&require;if(!s&&c)return c(u,!0);if(i)return i(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var a=n[u]={exports:{}};e[u][0].call(a.exports,function(t){var n=e[u][1][t];return o(n?n:t)},a,a.exports,t,e,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;ut;t+=2){var e=te[t],n=te[t+1];e(n),te[t]=void 0,te[t+1]=void 0}H=0}function p(){try{var e=t,n=e("vertx");return I=n.runOnLoop||n.runOnContext,c()}catch(r){return l()}}function d(t,e){var n=this,r=new this.constructor(y);void 0===r[ne]&&D(r);var o=n._state;if(o){var i=arguments[o-1];Q(function(){return L(o,r,i,n._result)})}else O(n,r,t,e);return r}function v(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(y);return E(n,t),n}function y(){}function m(){return new TypeError("You cannot resolve a promise with itself")}function _(){return new TypeError("A promises callback cannot return that same promise.")}function w(t){try{return t.then}catch(e){return ue.error=e,ue}}function g(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function b(t,e,n){Q(function(t){var r=!1,o=g(n,e,function(n){r||(r=!0,e!==n?E(t,n):j(t,n))},function(e){r||(r=!0,x(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,x(t,o))},t)}function T(t,e){e._state===oe?j(t,e._result):e._state===ie?x(t,e._result):O(e,void 0,function(e){return E(t,e)},function(e){return x(t,e)})}function A(t,e,r){e.constructor===t.constructor&&r===d&&e.constructor.resolve===v?T(t,e):r===ue?(x(t,ue.error),ue.error=null):void 0===r?j(t,e):n(r)?b(t,e,r):j(t,e)}function E(t,n){t===n?x(t,m()):e(n)?A(t,n,w(n)):j(t,n)}function S(t){t._onerror&&t._onerror(t._result),M(t)}function j(t,e){t._state===re&&(t._result=e,t._state=oe,0!==t._subscribers.length&&Q(M,t))}function x(t,e){t._state===re&&(t._state=ie,t._result=e,Q(S,t))}function O(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+oe]=n,o[i+ie]=r,0===i&&t._state&&Q(M,t)}function M(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,u=0;ui;i++)e.resolve(t[i]).then(n,r)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})}function Y(t){var e=this,n=new e(y);return x(n,t),n}function K(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function z(){var t=void 0;if("undefined"!=typeof o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=ae}var B=void 0;B=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var G=B,H=0,I=void 0,J=void 0,Q=function(t,e){te[H]=t,te[H+1]=e,H+=2,2===H&&(J?J(h):ee())},R="undefined"!=typeof window?window:void 0,V=R||{},X=V.MutationObserver||V.WebKitMutationObserver,Z="undefined"==typeof self&&"undefined"!=typeof r&&"[object process]"==={}.toString.call(r),$="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,te=new Array(1e3),ee=void 0;ee=Z?s():X?f():$?a():void 0===R&&"function"==typeof t?p():l();var ne=Math.random().toString(36).substring(16),re=void 0,oe=1,ie=2,ue=new P,se=new P,ce=0,fe=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(y),this.promise[ne]||D(this.promise),G(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&j(this.promise,this._result))):x(this.promise,F())}return t.prototype._enumerate=function(t){for(var e=0;this._state===re&&e1)for(var n=1;n