@glvnzn/web-sdk
Advanced tools
Comparing version 1.0.16 to 1.0.17
import { Games } from './resources/games'; | ||
export declare class ScaleCMS { | ||
export declare class OpexaCMS { | ||
games: Games; | ||
@@ -4,0 +4,0 @@ constructor(config: { |
@@ -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.ScaleCMS=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 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)}; |
@@ -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 ScaleCMS}; | ||
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}; |
@@ -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.ScaleCMS=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 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)}}); |
{ | ||
"name": "@glvnzn/web-sdk", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"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