Socket
Socket
Sign inDemoInstall

@glvnzn/web-sdk

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glvnzn/web-sdk - npm Package Compare versions

Comparing version 1.0.32 to 1.0.33

dist/resources/sites/index.d.ts

3

dist/index.d.ts
import { Games } from './resources/games';
import { Sites } from './resources/sites';
export * from './resources/games/types';
export * from './resources/sites/types';
export declare class OpexaCMS {
games: Games;
sites: Sites;
constructor(config: {

@@ -6,0 +9,0 @@ apiKey: string;

2

dist/index.js

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

function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.apply(this,arguments)}function t(e,r){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,r)}var r=function e(t,r){void 0===r&&(r="");var n={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=r?(r+"-"+o).replace(/[-_](.)/g,function(e,t){return t.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,e(i,s)):n[s]=i}return n},n=/*#__PURE__*/function(r){var n,o;function i(){return r.apply(this,arguments)||this}o=r,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,t(n,o);var s=i.prototype;return s.get=function(t){try{var r=this;return Promise.resolve(r.request("/games",{method:"GET"},e({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},t))).then(function(e){return r.transformResponse(e)})}catch(e){return Promise.reject(e)}},s.transformResponse=function(e){var t=e.edges,r=e.pageInfo,n=e.totalCount;if(!t||!r)throw new Error("Invalid response format: missing required properties");return{data:t.map(function(e){if(!(e&&e.node&&e.node.id&&e.node.name&&e.node.provider&&e.node.type))throw new Error("Invalid game format: missing required properties");return{id:e.node.id,image:"",name:e.node.name,provider:e.node.provider,type:e.node.type}}),pageInfo:{nextPageCursor:r.hasNextPage?r.endCursor:void 0,totalCount:n||0}}},i}(/*#__PURE__*/function(){function t(e){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=e.apiKey,this.siteId=e.siteId,this.baseUrl=e.baseUrl||"http://site-api.opexacms.io/v1"}return t.prototype.request=function(t,n,o){var i=""+this.baseUrl+t,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=e({},n,{headers:s});return fetch(i+(a?"?"+a:""),e({},u,{method:(null==n?void 0:n.method)||"GET"})).then(function(e){if(e.ok)return e.json();throw new Error(e.statusText)})},t}());exports.OpexaCMS=function(e){this.games=void 0,this.games=new n(e)};
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 n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.apply(this,arguments)}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}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(){function e(t){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=t.apiKey,this.siteId=t.siteId,this.baseUrl=t.baseUrl||"http://site-api.opexacms.io/v1"}return e.prototype.request=function(e,r,o){var i=""+this.baseUrl+e,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=t({},r,{headers:s});return fetch(i+(a?"?"+a:""),t({},u,{method:(null==r?void 0:r.method)||"GET"})).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},e}(),i=/*#__PURE__*/function(r){function n(){return r.apply(this,arguments)||this}e(n,r);var o=n.prototype;return o.get=function(e){try{var r=this;return Promise.resolve(r.request("/games",{method:"GET"},t({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))).then(function(t){return r.transformResponse(t)})}catch(t){return Promise.reject(t)}},o.transformResponse=function(t){var e=t.edges,r=t.pageInfo,n=t.totalCount;if(!e||!r)throw new Error("Invalid response format: missing required properties");return{data:e.map(function(t){if(!(t&&t.node&&t.node.id&&t.node.name&&t.node.provider&&t.node.type))throw new Error("Invalid game format: missing required properties");return{id:t.node.id,image:"",name:t.node.name,provider:t.node.provider,type:t.node.type}}),pageInfo:{nextPageCursor:r.hasNextPage?r.endCursor:void 0,totalCount:n||0}}},n}(o),s=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.getSiteId=function(){return this.siteId},n.get=function(){try{return Promise.resolve(this.request("/sites/"+this.getSiteId(),{method:"GET"}))}catch(t){return Promise.reject(t)}},r}(o);exports.OpexaCMS=function(t){this.games=void 0,this.sites=void 0,this.games=new i(t),this.sites=new s(t)};

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

function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.apply(this,arguments)}function t(e,r){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,r)}var r=function e(t,r){void 0===r&&(r="");var n={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=r?(r+"-"+o).replace(/[-_](.)/g,function(e,t){return t.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,e(i,s)):n[s]=i}return n},n=/*#__PURE__*/function(r){var n,o;function i(){return r.apply(this,arguments)||this}o=r,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,t(n,o);var s=i.prototype;return s.get=function(t){try{var r=this;return Promise.resolve(r.request("/games",{method:"GET"},e({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},t))).then(function(e){return r.transformResponse(e)})}catch(e){return Promise.reject(e)}},s.transformResponse=function(e){var t=e.edges,r=e.pageInfo,n=e.totalCount;if(!t||!r)throw new Error("Invalid response format: missing required properties");return{data:t.map(function(e){if(!(e&&e.node&&e.node.id&&e.node.name&&e.node.provider&&e.node.type))throw new Error("Invalid game format: missing required properties");return{id:e.node.id,image:"",name:e.node.name,provider:e.node.provider,type:e.node.type}}),pageInfo:{nextPageCursor:r.hasNextPage?r.endCursor:void 0,totalCount:n||0}}},i}(/*#__PURE__*/function(){function t(e){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=e.apiKey,this.siteId=e.siteId,this.baseUrl=e.baseUrl||"http://site-api.opexacms.io/v1"}return t.prototype.request=function(t,n,o){var i=""+this.baseUrl+t,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=e({},n,{headers:s});return fetch(i+(a?"?"+a:""),e({},u,{method:(null==n?void 0:n.method)||"GET"})).then(function(e){if(e.ok)return e.json();throw new Error(e.statusText)})},t}()),o=function(e){this.games=void 0,this.games=new n(e)};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 n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t.apply(this,arguments)}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}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(){function e(t){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=t.apiKey,this.siteId=t.siteId,this.baseUrl=t.baseUrl||"http://site-api.opexacms.io/v1"}return e.prototype.request=function(e,r,o){var i=""+this.baseUrl+e,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=t({},r,{headers:s});return fetch(i+(a?"?"+a:""),t({},u,{method:(null==r?void 0:r.method)||"GET"})).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},e}(),i=/*#__PURE__*/function(r){function n(){return r.apply(this,arguments)||this}e(n,r);var o=n.prototype;return o.get=function(e){try{var r=this;return Promise.resolve(r.request("/games",{method:"GET"},t({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))).then(function(t){return r.transformResponse(t)})}catch(t){return Promise.reject(t)}},o.transformResponse=function(t){var e=t.edges,r=t.pageInfo,n=t.totalCount;if(!e||!r)throw new Error("Invalid response format: missing required properties");return{data:e.map(function(t){if(!(t&&t.node&&t.node.id&&t.node.name&&t.node.provider&&t.node.type))throw new Error("Invalid game format: missing required properties");return{id:t.node.id,image:"",name:t.node.name,provider:t.node.provider,type:t.node.type}}),pageInfo:{nextPageCursor:r.hasNextPage?r.endCursor:void 0,totalCount:n||0}}},n}(o),s=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.getSiteId=function(){return this.siteId},n.get=function(){try{return Promise.resolve(this.request("/sites/"+this.getSiteId(),{method:"GET"}))}catch(t){return Promise.reject(t)}},r}(o),a=function(t){this.games=void 0,this.sites=void 0,this.games=new i(t),this.sites=new s(t)};export{a as OpexaCMS};

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e||self).webSdk={})}(this,function(e){function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var n=function e(t,r){void 0===r&&(r="");var n={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=r?(r+"-"+o).replace(/[-_](.)/g,function(e,t){return t.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,e(i,s)):n[s]=i}return n},o=/*#__PURE__*/function(e){var n,o;function i(){return e.apply(this,arguments)||this}o=e,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,r(n,o);var s=i.prototype;return s.get=function(e){try{var r=this;return Promise.resolve(r.request("/games",{method:"GET"},t({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))).then(function(e){return r.transformResponse(e)})}catch(e){return Promise.reject(e)}},s.transformResponse=function(e){var t=e.edges,r=e.pageInfo,n=e.totalCount;if(!t||!r)throw new Error("Invalid response format: missing required properties");return{data:t.map(function(e){if(!(e&&e.node&&e.node.id&&e.node.name&&e.node.provider&&e.node.type))throw new Error("Invalid game format: missing required properties");return{id:e.node.id,image:"",name:e.node.name,provider:e.node.provider,type:e.node.type}}),pageInfo:{nextPageCursor:r.hasNextPage?r.endCursor:void 0,totalCount:n||0}}},i}(/*#__PURE__*/function(){function e(e){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=e.apiKey,this.siteId=e.siteId,this.baseUrl=e.baseUrl||"http://site-api.opexacms.io/v1"}return e.prototype.request=function(e,r,o){var i=""+this.baseUrl+e,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=t({},r,{headers:s});return fetch(i+(a?"?"+a:""),t({},u,{method:(null==r?void 0:r.method)||"GET"})).then(function(e){if(e.ok)return e.json();throw new Error(e.statusText)})},e}());e.OpexaCMS=function(e){this.games=void 0,this.games=new o(e)}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e||self).webSdk={})}(this,function(e){function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var o=function e(t,r){void 0===r&&(r="");var n={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=r?(r+"-"+o).replace(/[-_](.)/g,function(e,t){return t.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,e(i,s)):n[s]=i}return n},i=/*#__PURE__*/function(){function e(e){this.apiKey=void 0,this.baseUrl=void 0,this.siteId=void 0,this.apiKey=e.apiKey,this.siteId=e.siteId,this.baseUrl=e.baseUrl||"http://site-api.opexacms.io/v1"}return e.prototype.request=function(e,r,n){var i=""+this.baseUrl+e,s={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},a="";if(n){var p=o(n);a=new URLSearchParams(p).toString()}var u=t({},r,{headers:s});return fetch(i+(a?"?"+a:""),t({},u,{method:(null==r?void 0:r.method)||"GET"})).then(function(e){if(e.ok)return e.json();throw new Error(e.statusText)})},e}(),s=/*#__PURE__*/function(e){function n(){return e.apply(this,arguments)||this}r(n,e);var o=n.prototype;return o.get=function(e){try{var r=this;return Promise.resolve(r.request("/games",{method:"GET"},t({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))).then(function(e){return r.transformResponse(e)})}catch(e){return Promise.reject(e)}},o.transformResponse=function(e){var t=e.edges,r=e.pageInfo,n=e.totalCount;if(!t||!r)throw new Error("Invalid response format: missing required properties");return{data:t.map(function(e){if(!(e&&e.node&&e.node.id&&e.node.name&&e.node.provider&&e.node.type))throw new Error("Invalid game format: missing required properties");return{id:e.node.id,image:"",name:e.node.name,provider:e.node.provider,type:e.node.type}}),pageInfo:{nextPageCursor:r.hasNextPage?r.endCursor:void 0,totalCount:n||0}}},n}(i),a=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getSiteId=function(){return this.siteId},n.get=function(){try{return Promise.resolve(this.request("/sites/"+this.getSiteId(),{method:"GET"}))}catch(e){return Promise.reject(e)}},t}(i);e.OpexaCMS=function(e){this.games=void 0,this.sites=void 0,this.games=new s(e),this.sites=new a(e)}});
{
"name": "@glvnzn/web-sdk",
"version": "1.0.32",
"version": "1.0.33",
"description": "",

@@ -18,4 +18,3 @@ "main": "dist/index.js",

},
"dependencies": {
},
"dependencies": {},
"exports": {

@@ -22,0 +21,0 @@ ".": {

Sorry, the diff of this file is not supported yet

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