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

gas-client

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gas-client - npm Package Compare versions

Comparing version 1.1.0-prelease1.0 to 1.1.0

2

dist/index.js

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

!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.lib=r():e.lib=r()}(self,(()=>(()=>{"use strict";var e={864:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FunctionHost=void 0;var t=function(){function e(){this._serverFunctions={}}return Object.defineProperty(e.prototype,"serverFunctions",{get:function(){return this._serverFunctions},enumerable:!1,configurable:!0}),e}();r.FunctionHost=t},925:function(e,r,t){var n,o=this&&this.__extends||(n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},n(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},i.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.GASPromises=void 0;var u=t(809),s=t(670),a=function(e){function r(){var r=e.call(this)||this;return r.promisifyGASFunctions(),r}return o(r,e),r.prototype.promisifyGASFunctions=function(){this._serverFunctions=Object.keys(google.script.run).reduce((function(e,r){var t;return u.ignoredFunctionNames.includes(r)?e:i(i({},e),((t={})[r]=s.promisify(r),t))}),{})},r}(t(864).FunctionHost);r.GASPromises=a},520:function(e,r,t){var n,o=this&&this.__extends||(n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},n(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)});Object.defineProperty(r,"__esModule",{value:!0}),r.ServerProxy=void 0;var i=t(550),u=t(184),s=function(e){function r(r){var t=e.call(this)||this;return t._config=r,window.gasStore={},window.addEventListener("message",t.buildMessageListener(),!1),t._serverFunctions=new Proxy({},{get:u.proxyHandler}),t}return o(r,e),r.prototype.buildMessageListener=function(){var e=this;return function(r){var t;if(i.checkAllowList(r.origin,null===(t=e._config)||void 0===t?void 0:t.allowedDevelopmentDomains)&&"RESPONSE"===r.data.type){var n=r.data,o=n.response,u=n.status,s=n.id,a=window.gasStore[s],c=a.resolve,f=a.reject;"ERROR"===u&&f(o),c(o)}}},r}(t(864).FunctionHost);r.ServerProxy=s},550:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.checkAllowList=void 0,r.checkAllowList=function(e,r){return"string"==typeof r?r.split(" ").some((function(r){return r===e})):"function"==typeof r&&!0===r(e)}},809:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ignoredFunctionNames=void 0,r.ignoredFunctionNames=["withFailureHandler","withLogger","withSuccessHandler","withUserObject"]},662:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isGASEnvironment=void 0,r.isGASEnvironment=function(){var e;return"undefined"!=typeof google&&Boolean(null===(e=null===google||void 0===google?void 0:google.script)||void 0===e?void 0:e.run)}},670:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.promisify=void 0,r.promisify=function(e){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return new Promise((function(t,n){var o;(o=google.script.run.withSuccessHandler(t).withFailureHandler(n))[e].apply(o,r)}))}}},184:function(e,r,t){var n=this&&this.__spreadArray||function(e,r){for(var t=0,n=r.length,o=e.length;t<n;t++,o++)e[o]=r[t];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.proxyHandler=void 0;var o=t(234);r.proxyHandler=function(e,r){var t=o.v4(),i=new Promise((function(e,r){window.gasStore[t]={resolve:e,reject:r}}));return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return window.parent.postMessage({type:"REQUEST",id:t,functionName:r,args:n([],e)},"*"),i}}},234:(e,r,t)=>{t.r(r),t.d(r,{v1:()=>v,v3:()=>A,v4:()=>O,v5:()=>P});var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function i(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}for(var u=[],s=0;s<256;++s)u.push((s+256).toString(16).substr(1));const a=function(e,r){var t=r||0;return(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase()};var c,f,l=0,p=0;const v=function(e,r,t){var n=r&&t||0,o=r||new Array(16),u=(e=e||{}).node||c,s=void 0!==e.clockseq?e.clockseq:f;if(null==u||null==s){var v=e.random||(e.rng||i)();null==u&&(u=c=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==s&&(s=f=16383&(v[6]<<8|v[7]))}var d=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:p+1,h=d-l+(y-p)/1e4;if(h<0&&void 0===e.clockseq&&(s=s+1&16383),(h<0||d>l)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=d,p=y,f=s;var g=(1e4*(268435455&(d+=122192928e5))+y)%4294967296;o[n++]=g>>>24&255,o[n++]=g>>>16&255,o[n++]=g>>>8&255,o[n++]=255&g;var b=d/4294967296*1e4&268435455;o[n++]=b>>>8&255,o[n++]=255&b,o[n++]=b>>>24&15|16,o[n++]=b>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var _=0;_<6;++_)o[n+_]=u[_];return r||a(o)};function d(e,r,t){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}(e)),"string"==typeof n&&(n=function(e){var r=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){r.push(parseInt(e,16))})),r}(n)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(n)||16!==n.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var u=t(n.concat(e));if(u[6]=15&u[6]|r,u[8]=63&u[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=u[s];return o}return a(u)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function y(e){return 14+(e+64>>>9<<4)+1}function h(e,r){var t=(65535&e)+(65535&r);return(e>>16)+(r>>16)+(t>>16)<<16|65535&t}function g(e,r,t,n,o,i){return h((u=h(h(r,e),h(n,i)))<<(s=o)|u>>>32-s,t);var u,s}function b(e,r,t,n,o,i,u){return g(r&t|~r&n,e,r,o,i,u)}function _(e,r,t,n,o,i,u){return g(r&n|t&~n,e,r,o,i,u)}function m(e,r,t,n,o,i,u){return g(r^t^n,e,r,o,i,u)}function w(e,r,t,n,o,i,u){return g(t^(r|~n),e,r,o,i,u)}const A=d("v3",48,(function(e){if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var t=0;t<r.length;++t)e[t]=r.charCodeAt(t)}return function(e){for(var r=[],t=32*e.length,n="0123456789abcdef",o=0;o<t;o+=8){var i=e[o>>5]>>>o%32&255,u=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);r.push(u)}return r}(function(e,r){e[r>>5]|=128<<r%32,e[y(r)-1]=r;for(var t=1732584193,n=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var s=t,a=n,c=o,f=i;t=b(t,n,o,i,e[u],7,-680876936),i=b(i,t,n,o,e[u+1],12,-389564586),o=b(o,i,t,n,e[u+2],17,606105819),n=b(n,o,i,t,e[u+3],22,-1044525330),t=b(t,n,o,i,e[u+4],7,-176418897),i=b(i,t,n,o,e[u+5],12,1200080426),o=b(o,i,t,n,e[u+6],17,-1473231341),n=b(n,o,i,t,e[u+7],22,-45705983),t=b(t,n,o,i,e[u+8],7,1770035416),i=b(i,t,n,o,e[u+9],12,-1958414417),o=b(o,i,t,n,e[u+10],17,-42063),n=b(n,o,i,t,e[u+11],22,-1990404162),t=b(t,n,o,i,e[u+12],7,1804603682),i=b(i,t,n,o,e[u+13],12,-40341101),o=b(o,i,t,n,e[u+14],17,-1502002290),t=_(t,n=b(n,o,i,t,e[u+15],22,1236535329),o,i,e[u+1],5,-165796510),i=_(i,t,n,o,e[u+6],9,-1069501632),o=_(o,i,t,n,e[u+11],14,643717713),n=_(n,o,i,t,e[u],20,-373897302),t=_(t,n,o,i,e[u+5],5,-701558691),i=_(i,t,n,o,e[u+10],9,38016083),o=_(o,i,t,n,e[u+15],14,-660478335),n=_(n,o,i,t,e[u+4],20,-405537848),t=_(t,n,o,i,e[u+9],5,568446438),i=_(i,t,n,o,e[u+14],9,-1019803690),o=_(o,i,t,n,e[u+3],14,-187363961),n=_(n,o,i,t,e[u+8],20,1163531501),t=_(t,n,o,i,e[u+13],5,-1444681467),i=_(i,t,n,o,e[u+2],9,-51403784),o=_(o,i,t,n,e[u+7],14,1735328473),t=m(t,n=_(n,o,i,t,e[u+12],20,-1926607734),o,i,e[u+5],4,-378558),i=m(i,t,n,o,e[u+8],11,-2022574463),o=m(o,i,t,n,e[u+11],16,1839030562),n=m(n,o,i,t,e[u+14],23,-35309556),t=m(t,n,o,i,e[u+1],4,-1530992060),i=m(i,t,n,o,e[u+4],11,1272893353),o=m(o,i,t,n,e[u+7],16,-155497632),n=m(n,o,i,t,e[u+10],23,-1094730640),t=m(t,n,o,i,e[u+13],4,681279174),i=m(i,t,n,o,e[u],11,-358537222),o=m(o,i,t,n,e[u+3],16,-722521979),n=m(n,o,i,t,e[u+6],23,76029189),t=m(t,n,o,i,e[u+9],4,-640364487),i=m(i,t,n,o,e[u+12],11,-421815835),o=m(o,i,t,n,e[u+15],16,530742520),t=w(t,n=m(n,o,i,t,e[u+2],23,-995338651),o,i,e[u],6,-198630844),i=w(i,t,n,o,e[u+7],10,1126891415),o=w(o,i,t,n,e[u+14],15,-1416354905),n=w(n,o,i,t,e[u+5],21,-57434055),t=w(t,n,o,i,e[u+12],6,1700485571),i=w(i,t,n,o,e[u+3],10,-1894986606),o=w(o,i,t,n,e[u+10],15,-1051523),n=w(n,o,i,t,e[u+1],21,-2054922799),t=w(t,n,o,i,e[u+8],6,1873313359),i=w(i,t,n,o,e[u+15],10,-30611744),o=w(o,i,t,n,e[u+6],15,-1560198380),n=w(n,o,i,t,e[u+13],21,1309151649),t=w(t,n,o,i,e[u+4],6,-145523070),i=w(i,t,n,o,e[u+11],10,-1120210379),o=w(o,i,t,n,e[u+2],15,718787259),n=w(n,o,i,t,e[u+9],21,-343485551),t=h(t,s),n=h(n,a),o=h(o,c),i=h(i,f)}return[t,n,o,i]}(function(e){if(0===e.length)return[];for(var r=8*e.length,t=new Uint32Array(y(r)),n=0;n<r;n+=8)t[n>>5]|=(255&e[n/8])<<n%32;return t}(e),8*e.length))})),O=function(e,r,t){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,r){t=t||0;for(var o=0;o<16;++o)r[t+o]=n[o];return r}return a(n)};function j(e,r,t,n){switch(e){case 0:return r&t^~r&n;case 1:case 3:return r^t^n;case 2:return r&t^r&n^t&n}}function S(e,r){return e<<r|e>>>32-r}const P=d("v5",80,(function(e){var r=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}e.push(128);for(var i=e.length/4+2,u=Math.ceil(i/16),s=new Array(u),a=0;a<u;++a){for(var c=new Uint32Array(16),f=0;f<16;++f)c[f]=e[64*a+4*f]<<24|e[64*a+4*f+1]<<16|e[64*a+4*f+2]<<8|e[64*a+4*f+3];s[a]=c}s[u-1][14]=8*(e.length-1)/Math.pow(2,32),s[u-1][14]=Math.floor(s[u-1][14]),s[u-1][15]=8*(e.length-1)&4294967295;for(var l=0;l<u;++l){for(var p=new Uint32Array(80),v=0;v<16;++v)p[v]=s[l][v];for(var d=16;d<80;++d)p[d]=S(p[d-3]^p[d-8]^p[d-14]^p[d-16],1);for(var y=t[0],h=t[1],g=t[2],b=t[3],_=t[4],m=0;m<80;++m){var w=Math.floor(m/20),A=S(y,5)+j(w,h,g,b)+_+r[w]+p[m]>>>0;_=b,b=g,g=S(h,30)>>>0,h=y,y=A}t[0]=t[0]+y>>>0,t[1]=t[1]+h>>>0,t[2]=t[2]+g>>>0,t[3]=t[3]+b>>>0,t[4]=t[4]+_>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]}))}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return e[n].call(i.exports,i,i.exports,t),i.exports}t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.GASClient=void 0;var r=t(662),o=t(925),i=t(520),u=function(){function e(e){this._config=e,r.isGASEnvironment()?this._functionHost=new o.GASPromises:this._functionHost=new i.ServerProxy(this._config)}return Object.defineProperty(e.prototype,"serverFunctions",{get:function(){return this._functionHost.serverFunctions},enumerable:!1,configurable:!0}),e}();e.GASClient=u})(),n})()));
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.GASClient=r():e.GASClient=r()}(self,(()=>(()=>{"use strict";var e={864:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FunctionHost=void 0;var t=function(){function e(){this._serverFunctions={}}return Object.defineProperty(e.prototype,"serverFunctions",{get:function(){return this._serverFunctions},enumerable:!1,configurable:!0}),e}();r.FunctionHost=t},925:function(e,r,t){var n,o=this&&this.__extends||(n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},n(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},i.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.GASPromises=void 0;var u=t(809),s=t(670),a=function(e){function r(){var r=e.call(this)||this;return r.promisifyGASFunctions(),r}return o(r,e),r.prototype.promisifyGASFunctions=function(){this._serverFunctions=Object.keys(google.script.run).reduce((function(e,r){var t;return u.ignoredFunctionNames.includes(r)?e:i(i({},e),((t={})[r]=s.promisify(r),t))}),{})},r}(t(864).FunctionHost);r.GASPromises=a},520:function(e,r,t){var n,o=this&&this.__extends||(n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},n(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)});Object.defineProperty(r,"__esModule",{value:!0}),r.ServerProxy=void 0;var i=t(550),u=t(184),s=function(e){function r(r){var t=e.call(this)||this;return t._config=r,window.gasStore={},window.addEventListener("message",t.buildMessageListener(),!1),t._serverFunctions=new Proxy({},{get:u.proxyHandler}),t}return o(r,e),r.prototype.buildMessageListener=function(){var e=this;return function(r){var t;if(i.checkAllowList(r.origin,null===(t=e._config)||void 0===t?void 0:t.allowedDevelopmentDomains)&&"RESPONSE"===r.data.type){var n=r.data,o=n.response,u=n.status,s=n.id,a=window.gasStore[s],c=a.resolve,f=a.reject;"ERROR"===u&&f(o),c(o)}}},r}(t(864).FunctionHost);r.ServerProxy=s},550:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.checkAllowList=void 0,r.checkAllowList=function(e,r){return"string"==typeof r?r.split(" ").some((function(r){return r===e})):"function"==typeof r&&!0===r(e)}},809:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ignoredFunctionNames=void 0,r.ignoredFunctionNames=["withFailureHandler","withLogger","withSuccessHandler","withUserObject"]},662:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isGASEnvironment=void 0,r.isGASEnvironment=function(){var e;return"undefined"!=typeof google&&Boolean(null===(e=null===google||void 0===google?void 0:google.script)||void 0===e?void 0:e.run)}},670:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.promisify=void 0,r.promisify=function(e){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return new Promise((function(t,n){var o;(o=google.script.run.withSuccessHandler(t).withFailureHandler(n))[e].apply(o,r)}))}}},184:function(e,r,t){var n=this&&this.__spreadArray||function(e,r){for(var t=0,n=r.length,o=e.length;t<n;t++,o++)e[o]=r[t];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.proxyHandler=void 0;var o=t(234);r.proxyHandler=function(e,r){var t=o.v4(),i=new Promise((function(e,r){window.gasStore[t]={resolve:e,reject:r}}));return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return window.parent.postMessage({type:"REQUEST",id:t,functionName:r,args:n([],e)},"*"),i}}},234:(e,r,t)=>{t.r(r),t.d(r,{v1:()=>v,v3:()=>A,v4:()=>O,v5:()=>P});var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function i(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}for(var u=[],s=0;s<256;++s)u.push((s+256).toString(16).substr(1));const a=function(e,r){var t=r||0;return(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase()};var c,f,l=0,p=0;const v=function(e,r,t){var n=r&&t||0,o=r||new Array(16),u=(e=e||{}).node||c,s=void 0!==e.clockseq?e.clockseq:f;if(null==u||null==s){var v=e.random||(e.rng||i)();null==u&&(u=c=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==s&&(s=f=16383&(v[6]<<8|v[7]))}var d=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:p+1,h=d-l+(y-p)/1e4;if(h<0&&void 0===e.clockseq&&(s=s+1&16383),(h<0||d>l)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=d,p=y,f=s;var g=(1e4*(268435455&(d+=122192928e5))+y)%4294967296;o[n++]=g>>>24&255,o[n++]=g>>>16&255,o[n++]=g>>>8&255,o[n++]=255&g;var _=d/4294967296*1e4&268435455;o[n++]=_>>>8&255,o[n++]=255&_,o[n++]=_>>>24&15|16,o[n++]=_>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var b=0;b<6;++b)o[n+b]=u[b];return r||a(o)};function d(e,r,t){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}(e)),"string"==typeof n&&(n=function(e){var r=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){r.push(parseInt(e,16))})),r}(n)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(n)||16!==n.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var u=t(n.concat(e));if(u[6]=15&u[6]|r,u[8]=63&u[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=u[s];return o}return a(u)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function y(e){return 14+(e+64>>>9<<4)+1}function h(e,r){var t=(65535&e)+(65535&r);return(e>>16)+(r>>16)+(t>>16)<<16|65535&t}function g(e,r,t,n,o,i){return h((u=h(h(r,e),h(n,i)))<<(s=o)|u>>>32-s,t);var u,s}function _(e,r,t,n,o,i,u){return g(r&t|~r&n,e,r,o,i,u)}function b(e,r,t,n,o,i,u){return g(r&n|t&~n,e,r,o,i,u)}function m(e,r,t,n,o,i,u){return g(r^t^n,e,r,o,i,u)}function w(e,r,t,n,o,i,u){return g(t^(r|~n),e,r,o,i,u)}const A=d("v3",48,(function(e){if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var t=0;t<r.length;++t)e[t]=r.charCodeAt(t)}return function(e){for(var r=[],t=32*e.length,n="0123456789abcdef",o=0;o<t;o+=8){var i=e[o>>5]>>>o%32&255,u=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);r.push(u)}return r}(function(e,r){e[r>>5]|=128<<r%32,e[y(r)-1]=r;for(var t=1732584193,n=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var s=t,a=n,c=o,f=i;t=_(t,n,o,i,e[u],7,-680876936),i=_(i,t,n,o,e[u+1],12,-389564586),o=_(o,i,t,n,e[u+2],17,606105819),n=_(n,o,i,t,e[u+3],22,-1044525330),t=_(t,n,o,i,e[u+4],7,-176418897),i=_(i,t,n,o,e[u+5],12,1200080426),o=_(o,i,t,n,e[u+6],17,-1473231341),n=_(n,o,i,t,e[u+7],22,-45705983),t=_(t,n,o,i,e[u+8],7,1770035416),i=_(i,t,n,o,e[u+9],12,-1958414417),o=_(o,i,t,n,e[u+10],17,-42063),n=_(n,o,i,t,e[u+11],22,-1990404162),t=_(t,n,o,i,e[u+12],7,1804603682),i=_(i,t,n,o,e[u+13],12,-40341101),o=_(o,i,t,n,e[u+14],17,-1502002290),t=b(t,n=_(n,o,i,t,e[u+15],22,1236535329),o,i,e[u+1],5,-165796510),i=b(i,t,n,o,e[u+6],9,-1069501632),o=b(o,i,t,n,e[u+11],14,643717713),n=b(n,o,i,t,e[u],20,-373897302),t=b(t,n,o,i,e[u+5],5,-701558691),i=b(i,t,n,o,e[u+10],9,38016083),o=b(o,i,t,n,e[u+15],14,-660478335),n=b(n,o,i,t,e[u+4],20,-405537848),t=b(t,n,o,i,e[u+9],5,568446438),i=b(i,t,n,o,e[u+14],9,-1019803690),o=b(o,i,t,n,e[u+3],14,-187363961),n=b(n,o,i,t,e[u+8],20,1163531501),t=b(t,n,o,i,e[u+13],5,-1444681467),i=b(i,t,n,o,e[u+2],9,-51403784),o=b(o,i,t,n,e[u+7],14,1735328473),t=m(t,n=b(n,o,i,t,e[u+12],20,-1926607734),o,i,e[u+5],4,-378558),i=m(i,t,n,o,e[u+8],11,-2022574463),o=m(o,i,t,n,e[u+11],16,1839030562),n=m(n,o,i,t,e[u+14],23,-35309556),t=m(t,n,o,i,e[u+1],4,-1530992060),i=m(i,t,n,o,e[u+4],11,1272893353),o=m(o,i,t,n,e[u+7],16,-155497632),n=m(n,o,i,t,e[u+10],23,-1094730640),t=m(t,n,o,i,e[u+13],4,681279174),i=m(i,t,n,o,e[u],11,-358537222),o=m(o,i,t,n,e[u+3],16,-722521979),n=m(n,o,i,t,e[u+6],23,76029189),t=m(t,n,o,i,e[u+9],4,-640364487),i=m(i,t,n,o,e[u+12],11,-421815835),o=m(o,i,t,n,e[u+15],16,530742520),t=w(t,n=m(n,o,i,t,e[u+2],23,-995338651),o,i,e[u],6,-198630844),i=w(i,t,n,o,e[u+7],10,1126891415),o=w(o,i,t,n,e[u+14],15,-1416354905),n=w(n,o,i,t,e[u+5],21,-57434055),t=w(t,n,o,i,e[u+12],6,1700485571),i=w(i,t,n,o,e[u+3],10,-1894986606),o=w(o,i,t,n,e[u+10],15,-1051523),n=w(n,o,i,t,e[u+1],21,-2054922799),t=w(t,n,o,i,e[u+8],6,1873313359),i=w(i,t,n,o,e[u+15],10,-30611744),o=w(o,i,t,n,e[u+6],15,-1560198380),n=w(n,o,i,t,e[u+13],21,1309151649),t=w(t,n,o,i,e[u+4],6,-145523070),i=w(i,t,n,o,e[u+11],10,-1120210379),o=w(o,i,t,n,e[u+2],15,718787259),n=w(n,o,i,t,e[u+9],21,-343485551),t=h(t,s),n=h(n,a),o=h(o,c),i=h(i,f)}return[t,n,o,i]}(function(e){if(0===e.length)return[];for(var r=8*e.length,t=new Uint32Array(y(r)),n=0;n<r;n+=8)t[n>>5]|=(255&e[n/8])<<n%32;return t}(e),8*e.length))})),O=function(e,r,t){var n=(e=e||{}).random||(e.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,r){t=t||0;for(var o=0;o<16;++o)r[t+o]=n[o];return r}return a(n)};function S(e,r,t,n){switch(e){case 0:return r&t^~r&n;case 1:case 3:return r^t^n;case 2:return r&t^r&n^t&n}}function j(e,r){return e<<r|e>>>32-r}const P=d("v5",80,(function(e){var r=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}e.push(128);for(var i=e.length/4+2,u=Math.ceil(i/16),s=new Array(u),a=0;a<u;++a){for(var c=new Uint32Array(16),f=0;f<16;++f)c[f]=e[64*a+4*f]<<24|e[64*a+4*f+1]<<16|e[64*a+4*f+2]<<8|e[64*a+4*f+3];s[a]=c}s[u-1][14]=8*(e.length-1)/Math.pow(2,32),s[u-1][14]=Math.floor(s[u-1][14]),s[u-1][15]=8*(e.length-1)&4294967295;for(var l=0;l<u;++l){for(var p=new Uint32Array(80),v=0;v<16;++v)p[v]=s[l][v];for(var d=16;d<80;++d)p[d]=j(p[d-3]^p[d-8]^p[d-14]^p[d-16],1);for(var y=t[0],h=t[1],g=t[2],_=t[3],b=t[4],m=0;m<80;++m){var w=Math.floor(m/20),A=j(y,5)+S(w,h,g,_)+b+r[w]+p[m]>>>0;b=_,_=g,g=j(h,30)>>>0,h=y,y=A}t[0]=t[0]+y>>>0,t[1]=t[1]+h>>>0,t[2]=t[2]+g>>>0,t[3]=t[3]+_>>>0,t[4]=t[4]+b>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]}))}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return e[n].call(i.exports,i,i.exports,t),i.exports}t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.GASClient=void 0;var r=t(662),o=t(925),i=t(520),u=function(){function e(e){this._config=e,r.isGASEnvironment()?this._functionHost=new o.GASPromises:this._functionHost=new i.ServerProxy(this._config)}return Object.defineProperty(e.prototype,"serverFunctions",{get:function(){return this._functionHost.serverFunctions},enumerable:!1,configurable:!0}),e}();e.GASClient=u})(),n})()));
{
"name": "gas-client",
"version": "1.1.0-prelease1.0",
"version": "1.1.0",
"description": "A client-side utility class that can call server-side Google Apps Script functions",

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

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

# gas-client v1.0.0
# gas-client v1.1.0

@@ -175,2 +175,6 @@ A client-side utility class that uses promises to call server-side Google Apps Script functions. This is a user-friendly wrapper of [google.script.run](https://developers.google.com/apps-script/guides/html/reference/run).

v1.1.0
- Uses webpack + ts-loader for build and publish as UMD build
- Renames build folder from `build` to `dist`
Breaking changes in v1.0.0:

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