@glvnzn/web-sdk
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -1,1 +0,1 @@ | ||
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},t.apply(this,arguments)}function e(t,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,r)}var r=function t(e,r){void 0===r&&(r="");var i={};for(var o in e)if(e.hasOwnProperty(o)){var n=e[o],s=r?r+"."+o:o;"object"==typeof n&&null!==n?Object.assign(i,t(n,s)):i[s]=n}return i},i=/*#__PURE__*/function(r){var i,o;function n(){return r.apply(this,arguments)||this}return o=r,(i=n).prototype=Object.create(o.prototype),i.prototype.constructor=i,e(i,o),n.prototype.get=function(e){return this.request("/games",{method:"GET"},t({},{first:"10",pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))},n}(/*#__PURE__*/function(){function e(t){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=t.apiKey,this.baseUrl=t.baseUrl||"http://site-api.opexacms.io/v1",this.siteId=t.siteId||"XubL48WAbKNdpyQ3h"}return e.prototype.request=function(e,i,o){var n=""+this.baseUrl+e,s={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},a="";if(o){var p=r(o);a=new URLSearchParams(p).toString()}var u=t({},i,{headers:s});return fetch(n+(a?"?"+a:""),t({},u,{method:(null==i?void 0:i.method)||"GET"})).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},e}());exports.OpexaCMS=function(t){this.games=void 0,this.games=new i(t)}; | ||
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},t.apply(this,arguments)}function e(t,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,r)}var r=function t(e,r){void 0===r&&(r="");var i={};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n],s=r?(""+r+n).replace(/[-_](.)/g,function(t,e){return e.toUpperCase()}):n;"object"==typeof o&&null!==o?Object.assign(i,t(o,s)):i[s]=o}return i},i=/*#__PURE__*/function(r){var i,n;function o(){return r.apply(this,arguments)||this}return n=r,(i=o).prototype=Object.create(n.prototype),i.prototype.constructor=i,e(i,n),o.prototype.get=function(e){return this.request("/games",{method:"GET"},t({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))},o}(/*#__PURE__*/function(){function e(t){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=t.apiKey,this.baseUrl=t.baseUrl||"http://site-api.opexacms.io/v1",this.siteId=t.siteId||"XubL48WAbKNdpyQ3h"}return e.prototype.request=function(e,i,n){var o=""+this.baseUrl+e,s={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},a="";if(n){var p=r(n);a=new URLSearchParams(p).toString()}var u=t({},i,{headers:s});return fetch(o+(a?"?"+a:""),t({},u,{method:(null==i?void 0:i.method)||"GET"})).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},e}());exports.OpexaCMS=function(t){this.games=void 0,this.games=new i(t)}; |
@@ -1,1 +0,1 @@ | ||
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},t.apply(this,arguments)}function e(t,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,r)}var r=function t(e,r){void 0===r&&(r="");var i={};for(var o in e)if(e.hasOwnProperty(o)){var n=e[o],s=r?r+"."+o:o;"object"==typeof n&&null!==n?Object.assign(i,t(n,s)):i[s]=n}return i},i=/*#__PURE__*/function(r){var i,o;function n(){return r.apply(this,arguments)||this}return o=r,(i=n).prototype=Object.create(o.prototype),i.prototype.constructor=i,e(i,o),n.prototype.get=function(e){return this.request("/games",{method:"GET"},t({},{first:"10",pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))},n}(/*#__PURE__*/function(){function e(t){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=t.apiKey,this.baseUrl=t.baseUrl||"http://site-api.opexacms.io/v1",this.siteId=t.siteId||"XubL48WAbKNdpyQ3h"}return e.prototype.request=function(e,i,o){var n=""+this.baseUrl+e,s={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},a="";if(o){var p=r(o);a=new URLSearchParams(p).toString()}var u=t({},i,{headers:s});return fetch(n+(a?"?"+a:""),t({},u,{method:(null==i?void 0:i.method)||"GET"})).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},e}()),o=function(t){this.games=void 0,this.games=new i(t)};export{o as OpexaCMS}; | ||
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},t.apply(this,arguments)}function e(t,r){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,r)}var r=function t(e,r){void 0===r&&(r="");var i={};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n],s=r?(""+r+n).replace(/[-_](.)/g,function(t,e){return e.toUpperCase()}):n;"object"==typeof o&&null!==o?Object.assign(i,t(o,s)):i[s]=o}return i},i=/*#__PURE__*/function(r){var i,n;function o(){return r.apply(this,arguments)||this}return n=r,(i=o).prototype=Object.create(n.prototype),i.prototype.constructor=i,e(i,n),o.prototype.get=function(e){return this.request("/games",{method:"GET"},t({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))},o}(/*#__PURE__*/function(){function e(t){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=t.apiKey,this.baseUrl=t.baseUrl||"http://site-api.opexacms.io/v1",this.siteId=t.siteId||"XubL48WAbKNdpyQ3h"}return e.prototype.request=function(e,i,n){var o=""+this.baseUrl+e,s={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},a="";if(n){var p=r(n);a=new URLSearchParams(p).toString()}var u=t({},i,{headers:s});return fetch(o+(a?"?"+a:""),t({},u,{method:(null==i?void 0:i.method)||"GET"})).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},e}()),n=function(t){this.games=void 0,this.games=new i(t)};export{n as OpexaCMS}; |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t||self).webSdk={})}(this,function(t){function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},e.apply(this,arguments)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}var o=function t(e,i){void 0===i&&(i="");var o={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r],s=i?i+"."+r:r;"object"==typeof n&&null!==n?Object.assign(o,t(n,s)):o[s]=n}return o},r=/*#__PURE__*/function(t){var o,r;function n(){return t.apply(this,arguments)||this}return r=t,(o=n).prototype=Object.create(r.prototype),o.prototype.constructor=o,i(o,r),n.prototype.get=function(t){return this.request("/games",{method:"GET"},e({},{first:"10",pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},t))},n}(/*#__PURE__*/function(){function t(t){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=t.apiKey,this.baseUrl=t.baseUrl||"http://site-api.opexacms.io/v1",this.siteId=t.siteId||"XubL48WAbKNdpyQ3h"}return t.prototype.request=function(t,i,r){var n=""+this.baseUrl+t,s={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},a="";if(r){var p=o(r);a=new URLSearchParams(p).toString()}var f=e({},i,{headers:s});return fetch(n+(a?"?"+a:""),e({},f,{method:(null==i?void 0:i.method)||"GET"})).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},t}());t.OpexaCMS=function(t){this.games=void 0,this.games=new r(t)}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t||self).webSdk={})}(this,function(t){function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.apply(this,arguments)}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}var n=function t(e,r){void 0===r&&(r="");var n={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o],s=r?(""+r+o).replace(/[-_](.)/g,function(t,e){return e.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,t(i,s)):n[s]=i}return n},o=/*#__PURE__*/function(t){var n,o;function i(){return t.apply(this,arguments)||this}return o=t,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,r(n,o),i.prototype.get=function(t){return this.request("/games",{method:"GET"},e({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},t))},i}(/*#__PURE__*/function(){function t(t){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=t.apiKey,this.baseUrl=t.baseUrl||"http://site-api.opexacms.io/v1",this.siteId=t.siteId||"XubL48WAbKNdpyQ3h"}return t.prototype.request=function(t,r,o){var i=""+this.baseUrl+t,s={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},a="";if(o){var p=n(o);a=new URLSearchParams(p).toString()}var u=e({},r,{headers:s});return fetch(i+(a?"?"+a:""),e({},u,{method:(null==r?void 0:r.method)||"GET"})).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},t}());t.OpexaCMS=function(t){this.games=void 0,this.games=new o(t)}}); |
@@ -13,3 +13,2 @@ export declare type Game = { | ||
export declare type QueryParams = { | ||
first?: string; | ||
pageSize?: string; | ||
@@ -16,0 +15,0 @@ nextPageCursor?: string; |
{ | ||
"name": "@glvnzn/web-sdk", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8178
77