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.24 to 1.0.25

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],a=r?(r+"-"+o).replace(/[-_](.)/g,function(e,t){return t.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,e(i,a)):n[a]=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 a=i.prototype;return a.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.serializeResponse(e)})}catch(e){return Promise.reject(e)}},a.serializeResponse=function(e){return{data:e.games.edges.map(function(e){return{id:e.node.id,image:"",name:e.node.name,provider:e.node.provider,type:e.node.type}}),pageInfo:{nextPageCursor:e.games.pageInfo.hasNextPage?e.games.pageInfo.endCursor:void 0,totalCount:e.games.totalCount}}},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,a={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},s="";if(o){var p=r(o);s=new URLSearchParams(p).toString()}var u=e({},n,{headers:a});return fetch(i+(s?"?"+s:""),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,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 n={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o],a=r?(r+"-"+o).replace(/[-_](.)/g,function(t,e){return e.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,t(i,a)):n[a]=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,e(n,o);var a=i.prototype;return a.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)}},a.transformResponse=function(t){return{data:t.games.edges.map(function(t){return{id:t.node.id,image:"",name:t.node.name,provider:t.node.provider,type:t.node.type}}),pageInfo:{nextPageCursor:t.games.pageInfo.hasNextPage?t.games.pageInfo.endCursor:void 0,totalCount:t.games.totalCount}}},i}(/*#__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,n,o){var i=""+this.baseUrl+e,a={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},s="";if(o){var p=r(o);s=new URLSearchParams(p).toString()}var u=t({},n,{headers:a});return fetch(i+(s?"?"+s:""),t({},u,{method:(null==n?void 0:n.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 n(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],a=r?(r+"-"+o).replace(/[-_](.)/g,function(e,t){return t.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,e(i,a)):n[a]=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 a=i.prototype;return a.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.serializeResponse(e)})}catch(e){return Promise.reject(e)}},a.serializeResponse=function(e){return{data:e.games.edges.map(function(e){return{id:e.node.id,image:"",name:e.node.name,provider:e.node.provider,type:e.node.type}}),pageInfo:{nextPageCursor:e.games.pageInfo.hasNextPage?e.games.pageInfo.endCursor:void 0,totalCount:e.games.totalCount}}},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,a={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},s="";if(o){var p=r(o);s=new URLSearchParams(p).toString()}var u=e({},n,{headers:a});return fetch(i+(s?"?"+s:""),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,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 n={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o],a=r?(r+"-"+o).replace(/[-_](.)/g,function(t,e){return e.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(n,t(i,a)):n[a]=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,e(n,o);var a=i.prototype;return a.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)}},a.transformResponse=function(t){return{data:t.games.edges.map(function(t){return{id:t.node.id,image:"",name:t.node.name,provider:t.node.provider,type:t.node.type}}),pageInfo:{nextPageCursor:t.games.pageInfo.hasNextPage?t.games.pageInfo.endCursor:void 0,totalCount:t.games.totalCount}}},i}(/*#__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,n,o){var i=""+this.baseUrl+e,a={"Content-Type":"application/json","api-key":this.apiKey,site_id:this.siteId},s="";if(o){var p=r(o);s=new URLSearchParams(p).toString()}var u=t({},n,{headers:a});return fetch(i+(s?"?"+s:""),t({},u,{method:(null==n?void 0:n.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 n(t)};export{o 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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var r=function e(t,n){void 0===n&&(n="");var r={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=n?(n+"-"+o).replace(/[-_](.)/g,function(e,t){return t.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(r,e(i,s)):r[s]=i}return r},o=/*#__PURE__*/function(e){var r,o;function i(){return e.apply(this,arguments)||this}o=e,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,n(r,o);var s=i.prototype;return s.get=function(e){try{var n=this;return Promise.resolve(n.request("/games",{method:"GET"},t({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))).then(function(e){return n.serializeResponse(e)})}catch(e){return Promise.reject(e)}},s.serializeResponse=function(e){return{data:e.games.edges.map(function(e){return{id:e.node.id,image:"",name:e.node.name,provider:e.node.provider,type:e.node.type}}),pageInfo:{nextPageCursor:e.games.pageInfo.hasNextPage?e.games.pageInfo.endCursor:void 0,totalCount:e.games.totalCount}}},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,n,o){var i=""+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({},n,{headers:s});return fetch(i+(a?"?"+a:""),t({},u,{method:(null==n?void 0:n.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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var r=function e(t,n){void 0===n&&(n="");var r={};for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],s=n?(n+"-"+o).replace(/[-_](.)/g,function(e,t){return t.toUpperCase()}):o;"object"==typeof i&&null!==i?Object.assign(r,e(i,s)):r[s]=i}return r},o=/*#__PURE__*/function(e){var r,o;function i(){return e.apply(this,arguments)||this}o=e,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,n(r,o);var s=i.prototype;return s.get=function(e){try{var n=this;return Promise.resolve(n.request("/games",{method:"GET"},t({},{pageSize:"10",nextPageCursor:"",filter:{provider:"",type:""}},e))).then(function(e){return n.transformResponse(e)})}catch(e){return Promise.reject(e)}},s.transformResponse=function(e){return{data:e.games.edges.map(function(e){return{id:e.node.id,image:"",name:e.node.name,provider:e.node.provider,type:e.node.type}}),pageInfo:{nextPageCursor:e.games.pageInfo.hasNextPage?e.games.pageInfo.endCursor:void 0,totalCount:e.games.totalCount}}},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,n,o){var i=""+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({},n,{headers:s});return fetch(i+(a?"?"+a:""),t({},u,{method:(null==n?void 0:n.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)}});

@@ -12,3 +12,3 @@ import { Base } from '../base';

}>;
private serializeResponse;
private transformResponse;
}

@@ -53,3 +53,3 @@ export declare type QueryParams = {

}
export interface SerializedGame {
export interface TransformedGame {
id: string;

@@ -61,10 +61,10 @@ image: string;

}
export interface SerializedPageInfo {
export interface TransformedPageInfo {
nextPageCursor?: string;
totalCount: number;
}
export interface SerializedResponse {
data: SerializedGame[];
pageInfo: SerializedPageInfo;
export interface TransformedResponse {
data: TransformedGame[];
pageInfo: TransformedPageInfo;
}
export {};
{
"name": "@glvnzn/web-sdk",
"version": "1.0.24",
"version": "1.0.25",
"description": "",

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

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