@algolia/client-personalization 5.0.0-alpha.73 → 5.0.0-alpha.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,10 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var clientCommon = require('@algolia/client-common');
6
4
  var requesterNodeHttp = require('@algolia/requester-node-http');
7
5
 
8
6
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
9
- const apiClientVersion = '5.0.0-alpha.73';
7
+ const apiClientVersion = '5.0.0-alpha.75';
10
8
  const REGIONS = ['eu', 'us'];
11
9
  function getDefaultHosts(region) {
12
10
  const url = 'personalization.{region}.algolia.com'.replace('{region}', region);
@@ -68,8 +66,8 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
68
66
  *
69
67
  * @summary Send requests to the Algolia REST API.
70
68
  * @param del - The del object.
71
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
72
- * @param del.parameters - Query parameters to be applied to the current query.
69
+ * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
70
+ * @param del.parameters - Query parameters to apply to the current query.
73
71
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
74
72
  */
75
73
  del({ path, parameters }, requestOptions) {
@@ -115,8 +113,8 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
115
113
  *
116
114
  * @summary Send requests to the Algolia REST API.
117
115
  * @param get - The get object.
118
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
119
- * @param get.parameters - Query parameters to be applied to the current query.
116
+ * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
117
+ * @param get.parameters - Query parameters to apply to the current query.
120
118
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
121
119
  */
122
120
  get({ path, parameters }, requestOptions) {
@@ -180,9 +178,9 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
180
178
  *
181
179
  * @summary Send requests to the Algolia REST API.
182
180
  * @param post - The post object.
183
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
184
- * @param post.parameters - Query parameters to be applied to the current query.
185
- * @param post.body - The parameters to send with the custom request.
181
+ * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
182
+ * @param post.parameters - Query parameters to apply to the current query.
183
+ * @param post.body - Parameters to send with the custom request.
186
184
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
187
185
  */
188
186
  post({ path, parameters, body }, requestOptions) {
@@ -206,9 +204,9 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
206
204
  *
207
205
  * @summary Send requests to the Algolia REST API.
208
206
  * @param put - The put object.
209
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
210
- * @param put.parameters - Query parameters to be applied to the current query.
211
- * @param put.body - The parameters to send with the custom request.
207
+ * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
208
+ * @param put.parameters - Query parameters to apply to the current query.
209
+ * @param put.body - Parameters to send with the custom request.
212
210
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
213
211
  */
214
212
  put({ path, parameters, body }, requestOptions) {
@@ -662,7 +662,7 @@ function createXhrRequester() {
662
662
  }
663
663
 
664
664
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
665
- const apiClientVersion = '5.0.0-alpha.73';
665
+ const apiClientVersion = '5.0.0-alpha.75';
666
666
  const REGIONS = ['eu', 'us'];
667
667
  function getDefaultHosts(region) {
668
668
  const url = 'personalization.{region}.algolia.com'.replace('{region}', region);
@@ -724,8 +724,8 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
724
724
  *
725
725
  * @summary Send requests to the Algolia REST API.
726
726
  * @param del - The del object.
727
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
728
- * @param del.parameters - Query parameters to be applied to the current query.
727
+ * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
728
+ * @param del.parameters - Query parameters to apply to the current query.
729
729
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
730
730
  */
731
731
  del({ path, parameters }, requestOptions) {
@@ -771,8 +771,8 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
771
771
  *
772
772
  * @summary Send requests to the Algolia REST API.
773
773
  * @param get - The get object.
774
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
775
- * @param get.parameters - Query parameters to be applied to the current query.
774
+ * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
775
+ * @param get.parameters - Query parameters to apply to the current query.
776
776
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
777
777
  */
778
778
  get({ path, parameters }, requestOptions) {
@@ -836,9 +836,9 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
836
836
  *
837
837
  * @summary Send requests to the Algolia REST API.
838
838
  * @param post - The post object.
839
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
840
- * @param post.parameters - Query parameters to be applied to the current query.
841
- * @param post.body - The parameters to send with the custom request.
839
+ * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
840
+ * @param post.parameters - Query parameters to apply to the current query.
841
+ * @param post.body - Parameters to send with the custom request.
842
842
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
843
843
  */
844
844
  post({ path, parameters, body }, requestOptions) {
@@ -862,9 +862,9 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
862
862
  *
863
863
  * @summary Send requests to the Algolia REST API.
864
864
  * @param put - The put object.
865
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
866
- * @param put.parameters - Query parameters to be applied to the current query.
867
- * @param put.body - The parameters to send with the custom request.
865
+ * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
866
+ * @param put.parameters - Query parameters to apply to the current query.
867
+ * @param put.body - Parameters to send with the custom request.
868
868
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
869
869
  */
870
870
  put({ path, parameters, body }, requestOptions) {
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, DEFAULT_CONNECT_TIMEOUT
2
2
  import { createHttpRequester } from '@algolia/requester-node-http';
3
3
 
4
4
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
5
- const apiClientVersion = '5.0.0-alpha.73';
5
+ const apiClientVersion = '5.0.0-alpha.75';
6
6
  const REGIONS = ['eu', 'us'];
7
7
  function getDefaultHosts(region) {
8
8
  const url = 'personalization.{region}.algolia.com'.replace('{region}', region);
@@ -64,8 +64,8 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
64
64
  *
65
65
  * @summary Send requests to the Algolia REST API.
66
66
  * @param del - The del object.
67
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
68
- * @param del.parameters - Query parameters to be applied to the current query.
67
+ * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
68
+ * @param del.parameters - Query parameters to apply to the current query.
69
69
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
70
70
  */
71
71
  del({ path, parameters }, requestOptions) {
@@ -111,8 +111,8 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
111
111
  *
112
112
  * @summary Send requests to the Algolia REST API.
113
113
  * @param get - The get object.
114
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
115
- * @param get.parameters - Query parameters to be applied to the current query.
114
+ * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
115
+ * @param get.parameters - Query parameters to apply to the current query.
116
116
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
117
117
  */
118
118
  get({ path, parameters }, requestOptions) {
@@ -176,9 +176,9 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
176
176
  *
177
177
  * @summary Send requests to the Algolia REST API.
178
178
  * @param post - The post object.
179
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
180
- * @param post.parameters - Query parameters to be applied to the current query.
181
- * @param post.body - The parameters to send with the custom request.
179
+ * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
180
+ * @param post.parameters - Query parameters to apply to the current query.
181
+ * @param post.body - Parameters to send with the custom request.
182
182
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
183
183
  */
184
184
  post({ path, parameters, body }, requestOptions) {
@@ -202,9 +202,9 @@ function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption,
202
202
  *
203
203
  * @summary Send requests to the Algolia REST API.
204
204
  * @param put - The put object.
205
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
206
- * @param put.parameters - Query parameters to be applied to the current query.
207
- * @param put.body - The parameters to send with the custom request.
205
+ * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
206
+ * @param put.parameters - Query parameters to apply to the current query.
207
+ * @param put.body - Parameters to send with the custom request.
208
208
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
209
209
  */
210
210
  put({ path, parameters, body }, requestOptions) {
@@ -1,2 +1,2 @@
1
- /*! client-personalization.umd.js | 5.0.0-alpha.73 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/client-personalization"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),s=a()[r];return Promise.all([s||t(),void 0!==s])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const o=a();return o[JSON.stringify(e)]=t,s().setItem(r,JSON.stringify(o)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,o={miss:()=>Promise.resolve()})=>s.get(e,a,o).catch((()=>r({caches:t}).get(e,a,o))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const n=s();return n.then((e=>a.miss(e))).then((()=>n))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function o(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends i{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",e,"RetryError")}}class l extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),n(this,"status",void 0),this.status=t}}class h extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class d extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function m(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function g({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:n,requester:i,requestsCache:c,responsesCache:g}){async function f(c,g,f=!0){const y=[],P=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,g),w=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,c.headers,g.headers),v="GET"===c.method?{...c.data,...g.data}:{},q={...s,...c.queryParameters,...v};if(a.value&&(q["x-algolia-agent"]=a.value),g&&g.queryParameters)for(const e of Object.keys(g.queryParameters))g.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(g.queryParameters[e])?q[e]=g.queryParameters[e].toString():q[e]=g.queryParameters[e];let T=0;const b=async(e,r)=>{const s=e.pop();if(void 0===s)throw new u(function(e){return e.map((e=>p(e)))}(y));let a=g.timeout;void 0===a&&(a=f?n.read:n.write);const v={data:P,headers:w,method:c.method,url:m(s,c.path,q),connectTimeout:r(T,n.connect),responseTimeout:r(T,a)},S=t=>{const r={request:v,response:t,host:s,triesLeft:e.length};return y.push(r),r},O=await i.send(v);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(O)){const a=S(O);return O.isTimedOut&&T++,console.log("Retryable failure",p(a)),await t.set(s,o(s,O.isTimedOut?"timed out":"down")),b(e,r)}if(function({status:e}){return 2==~~(e/100)}(O))return function(e){try{return JSON.parse(e.content)}catch(t){throw new h(t.message,e)}}(O);throw S(O),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new d(s.message,t,s.error,r):new l(s.message,t,r)}catch(e){}return new l(e,t,r)}(O,y)},S=e.filter((e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept))),O=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(o(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),n=[...s,...a];return{hosts:n.length>0?n:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(S);return b([...O.hosts].reverse(),O.getTimeout)}return{hostsCache:t,requester:i,timeouts:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return f(e,t,a);const o=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return o();const n={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return g.get(n,(()=>c.get(n,(()=>c.set(n,o()).then((e=>Promise.all([c.delete(n),e])),(e=>Promise.all([c.delete(n),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>g.set(n,e)})},requestsCache:c,responsesCache:g}}function f({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const y="5.0.0-alpha.73",P=["eu","us"];e.apiClientVersion=y,e.personalizationClient=function(e,a,o,n){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");if(!o||o&&("string"!=typeof o||!P.includes(o)))throw new Error(`\`region\` is required and must be one of the following: ${P.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,region:a,...o}){const n=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),i=g({hosts:(c=a,[{url:"personalization.{region}.algolia.com".replace("{region}",c),accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:f({algoliaAgents:s,client:"Personalization",version:y}),baseHeaders:{"content-type":"text/plain",...n.headers(),...o.baseHeaders},baseQueryParameters:{...n.queryParameters(),...o.baseQueryParameters}});var c;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},del({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `del`.");const s={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},deleteUserProfile({userToken:e},t){if(!e)throw new Error("Parameter `userToken` is required when calling `deleteUserProfile`.");const r={method:"DELETE",path:"/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},get({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `get`.");const s={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},getPersonalizationStrategy(e){const t={method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}};return i.request(t,e)},getUserTokenProfile({userToken:e},t){if(!e)throw new Error("Parameter `userToken` is required when calling `getUserTokenProfile`.");const r={method:"GET",path:"/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},post({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},put({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `put`.");const a={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},setPersonalizationStrategy(e,t){if(!e)throw new Error("Parameter `personalizationStrategyParams` is required when calling `setPersonalizationStrategy`.");if(!e.eventScoring)throw new Error("Parameter `personalizationStrategyParams.eventScoring` is required when calling `setPersonalizationStrategy`.");if(!e.facetScoring)throw new Error("Parameter `personalizationStrategyParams.facetScoring` is required when calling `setPersonalizationStrategy`.");if(!e.personalizationImpact)throw new Error("Parameter `personalizationStrategyParams.personalizationImpact` is required when calling `setPersonalizationStrategy`.");const r={method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:e};return i.request(r,t)}}}({appId:e,apiKey:a,region:o,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(a),o=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(o),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${y}-${e}`}),s()]}),...n})}}));
1
+ /*! client-personalization.umd.js | 5.0.0-alpha.75 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/client-personalization"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}return{get:(e,t,r={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>{const r=JSON.stringify(e),s=a()[r];return Promise.all([s||t(),void 0!==s])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const o=a();return o[JSON.stringify(e)]=t,s().setItem(r,JSON.stringify(o)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,o={miss:()=>Promise.resolve()})=>s.get(e,a,o).catch((()=>r({caches:t}).get(e,a,o))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const n=s();return n.then((e=>a.miss(e))).then((()=>n))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function o(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends i{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",e,"RetryError")}}class l extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),n(this,"status",void 0),this.status=t}}class h extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class d extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function m(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r])}`)).join("&")}(r);let a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return s.length&&(a+=`?${s}`),a}function p(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function g({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:n,requester:i,requestsCache:c,responsesCache:g}){async function f(c,g,f=!0){const y=[],P=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,g),w=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,c.headers,g.headers),v="GET"===c.method?{...c.data,...g.data}:{},q={...s,...c.queryParameters,...v};if(a.value&&(q["x-algolia-agent"]=a.value),g&&g.queryParameters)for(const e of Object.keys(g.queryParameters))g.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(g.queryParameters[e])?q[e]=g.queryParameters[e].toString():q[e]=g.queryParameters[e];let T=0;const b=async(e,r)=>{const s=e.pop();if(void 0===s)throw new u(function(e){return e.map((e=>p(e)))}(y));let a=g.timeout;void 0===a&&(a=f?n.read:n.write);const v={data:P,headers:w,method:c.method,url:m(s,c.path,q),connectTimeout:r(T,n.connect),responseTimeout:r(T,a)},S=t=>{const r={request:v,response:t,host:s,triesLeft:e.length};return y.push(r),r},O=await i.send(v);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(O)){const a=S(O);return O.isTimedOut&&T++,console.log("Retryable failure",p(a)),await t.set(s,o(s,O.isTimedOut?"timed out":"down")),b(e,r)}if(function({status:e}){return 2==~~(e/100)}(O))return function(e){try{return JSON.parse(e.content)}catch(t){throw new h(t.message,e)}}(O);throw S(O),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new d(s.message,t,s.error,r):new l(s.message,t,r)}catch(e){}return new l(e,t,r)}(O,y)},S=e.filter((e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept))),O=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(o(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),n=[...s,...a];return{hosts:n.length>0?n:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(S);return b([...O.hosts].reverse(),O.getTimeout)}return{hostsCache:t,requester:i,timeouts:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return f(e,t,a);const o=()=>f(e,t);if(!0!==(t.cacheable||e.cacheable))return o();const n={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return g.get(n,(()=>c.get(n,(()=>c.set(n,o()).then((e=>Promise.all([c.delete(n),e])),(e=>Promise.all([c.delete(n),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>g.set(n,e)})},requestsCache:c,responsesCache:g}}function f({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const y="5.0.0-alpha.75",P=["eu","us"];e.apiClientVersion=y,e.personalizationClient=function(e,a,o,n){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");if(!o||o&&("string"!=typeof o||!P.includes(o)))throw new Error(`\`region\` is required and must be one of the following: ${P.join(", ")}`);return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,region:a,...o}){const n=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),i=g({hosts:(c=a,[{url:"personalization.{region}.algolia.com".replace("{region}",c),accept:"readWrite",protocol:"https"}]),...o,algoliaAgent:f({algoliaAgents:s,client:"Personalization",version:y}),baseHeaders:{"content-type":"text/plain",...n.headers(),...o.baseHeaders},baseQueryParameters:{...n.queryParameters(),...o.baseQueryParameters}});var c;return{transporter:i,appId:e,clearCache:()=>Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((()=>{})),get _ua(){return i.algoliaAgent.value},addAlgoliaAgent(e,t){i.algoliaAgent.add({segment:e,version:t})},del({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `del`.");const s={method:"DELETE",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},deleteUserProfile({userToken:e},t){if(!e)throw new Error("Parameter `userToken` is required when calling `deleteUserProfile`.");const r={method:"DELETE",path:"/1/profiles/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},get({path:e,parameters:t},r){if(!e)throw new Error("Parameter `path` is required when calling `get`.");const s={method:"GET",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{}};return i.request(s,r)},getPersonalizationStrategy(e){const t={method:"GET",path:"/1/strategies/personalization",queryParameters:{},headers:{}};return i.request(t,e)},getUserTokenProfile({userToken:e},t){if(!e)throw new Error("Parameter `userToken` is required when calling `getUserTokenProfile`.");const r={method:"GET",path:"/1/profiles/personalization/{userToken}".replace("{userToken}",encodeURIComponent(e)),queryParameters:{},headers:{}};return i.request(r,t)},post({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `post`.");const a={method:"POST",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},put({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `put`.");const a={method:"PUT",path:"/1{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return i.request(a,s)},setPersonalizationStrategy(e,t){if(!e)throw new Error("Parameter `personalizationStrategyParams` is required when calling `setPersonalizationStrategy`.");if(!e.eventScoring)throw new Error("Parameter `personalizationStrategyParams.eventScoring` is required when calling `setPersonalizationStrategy`.");if(!e.facetScoring)throw new Error("Parameter `personalizationStrategyParams.facetScoring` is required when calling `setPersonalizationStrategy`.");if(!e.personalizationImpact)throw new Error("Parameter `personalizationStrategyParams.personalizationImpact` is required when calling `setPersonalizationStrategy`.");const r={method:"POST",path:"/1/strategies/personalization",queryParameters:{},headers:{},data:e};return i.request(r,t)}}}({appId:e,apiKey:a,region:o,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(a),o=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(o),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${y}-${e}`}),s()]}),...n})}}));
@@ -3,11 +3,11 @@
3
3
  */
4
4
  export type DelProps = {
5
5
  /**
6
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
6
+ * Path of the endpoint, anything after \"/1\" must be specified.
7
7
  */
8
8
  path: string;
9
9
  /**
10
- * Query parameters to be applied to the current query.
10
+ * Query parameters to apply to the current query.
11
11
  */
12
12
  parameters?: Record<string, any>;
13
13
  };
@@ -25,11 +25,11 @@ export type DeleteUserProfileProps = {
25
25
  */
26
26
  export type GetProps = {
27
27
  /**
28
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
28
+ * Path of the endpoint, anything after \"/1\" must be specified.
29
29
  */
30
30
  path: string;
31
31
  /**
32
- * Query parameters to be applied to the current query.
32
+ * Query parameters to apply to the current query.
33
33
  */
34
34
  parameters?: Record<string, any>;
35
35
  };
@@ -47,15 +47,15 @@ export type GetUserTokenProfileProps = {
47
47
  */
48
48
  export type PostProps = {
49
49
  /**
50
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
50
+ * Path of the endpoint, anything after \"/1\" must be specified.
51
51
  */
52
52
  path: string;
53
53
  /**
54
- * Query parameters to be applied to the current query.
54
+ * Query parameters to apply to the current query.
55
55
  */
56
56
  parameters?: Record<string, any>;
57
57
  /**
58
- * The parameters to send with the custom request.
58
+ * Parameters to send with the custom request.
59
59
  */
60
60
  body?: Record<string, any>;
61
61
  };
@@ -64,15 +64,15 @@ export type PostProps = {
64
64
  */
65
65
  export type PutProps = {
66
66
  /**
67
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
67
+ * Path of the endpoint, anything after \"/1\" must be specified.
68
68
  */
69
69
  path: string;
70
70
  /**
71
- * Query parameters to be applied to the current query.
71
+ * Query parameters to apply to the current query.
72
72
  */
73
73
  parameters?: Record<string, any>;
74
74
  /**
75
- * The parameters to send with the custom request.
75
+ * Parameters to send with the custom request.
76
76
  */
77
77
  body?: Record<string, any>;
78
78
  };
@@ -4,7 +4,7 @@ import type { DeleteUserProfileResponse } from '../model/deleteUserProfileRespon
4
4
  import type { GetUserTokenResponse } from '../model/getUserTokenResponse';
5
5
  import type { PersonalizationStrategyParams } from '../model/personalizationStrategyParams';
6
6
  import type { SetPersonalizationStrategyResponse } from '../model/setPersonalizationStrategyResponse';
7
- export declare const apiClientVersion = "5.0.0-alpha.73";
7
+ export declare const apiClientVersion = "5.0.0-alpha.75";
8
8
  export declare const REGIONS: readonly ["eu", "us"];
9
9
  export type Region = (typeof REGIONS)[number];
10
10
  export declare function createPersonalizationClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
@@ -35,8 +35,8 @@ export declare function createPersonalizationClient({ appId: appIdOption, apiKey
35
35
  *
36
36
  * @summary Send requests to the Algolia REST API.
37
37
  * @param del - The del object.
38
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
39
- * @param del.parameters - Query parameters to be applied to the current query.
38
+ * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
39
+ * @param del.parameters - Query parameters to apply to the current query.
40
40
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
41
41
  */
42
42
  del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
@@ -54,8 +54,8 @@ export declare function createPersonalizationClient({ appId: appIdOption, apiKey
54
54
  *
55
55
  * @summary Send requests to the Algolia REST API.
56
56
  * @param get - The get object.
57
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
58
- * @param get.parameters - Query parameters to be applied to the current query.
57
+ * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
58
+ * @param get.parameters - Query parameters to apply to the current query.
59
59
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
60
60
  */
61
61
  get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
@@ -80,9 +80,9 @@ export declare function createPersonalizationClient({ appId: appIdOption, apiKey
80
80
  *
81
81
  * @summary Send requests to the Algolia REST API.
82
82
  * @param post - The post object.
83
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
84
- * @param post.parameters - Query parameters to be applied to the current query.
85
- * @param post.body - The parameters to send with the custom request.
83
+ * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
84
+ * @param post.parameters - Query parameters to apply to the current query.
85
+ * @param post.body - Parameters to send with the custom request.
86
86
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
87
87
  */
88
88
  post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
@@ -91,9 +91,9 @@ export declare function createPersonalizationClient({ appId: appIdOption, apiKey
91
91
  *
92
92
  * @summary Send requests to the Algolia REST API.
93
93
  * @param put - The put object.
94
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
95
- * @param put.parameters - Query parameters to be applied to the current query.
96
- * @param put.body - The parameters to send with the custom request.
94
+ * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
95
+ * @param put.parameters - Query parameters to apply to the current query.
96
+ * @param put.body - Parameters to send with the custom request.
97
97
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
98
98
  */
99
99
  put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
@@ -5,11 +5,11 @@
5
5
  */
6
6
  export type DelProps = {
7
7
  /**
8
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
8
+ * Path of the endpoint, anything after \"/1\" must be specified.
9
9
  */
10
10
  path: string;
11
11
  /**
12
- * Query parameters to be applied to the current query.
12
+ * Query parameters to apply to the current query.
13
13
  */
14
14
  parameters?: Record<string, any>;
15
15
  };
@@ -29,11 +29,11 @@ export type DeleteUserProfileProps = {
29
29
  */
30
30
  export type GetProps = {
31
31
  /**
32
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
32
+ * Path of the endpoint, anything after \"/1\" must be specified.
33
33
  */
34
34
  path: string;
35
35
  /**
36
- * Query parameters to be applied to the current query.
36
+ * Query parameters to apply to the current query.
37
37
  */
38
38
  parameters?: Record<string, any>;
39
39
  };
@@ -53,15 +53,15 @@ export type GetUserTokenProfileProps = {
53
53
  */
54
54
  export type PostProps = {
55
55
  /**
56
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
56
+ * Path of the endpoint, anything after \"/1\" must be specified.
57
57
  */
58
58
  path: string;
59
59
  /**
60
- * Query parameters to be applied to the current query.
60
+ * Query parameters to apply to the current query.
61
61
  */
62
62
  parameters?: Record<string, any>;
63
63
  /**
64
- * The parameters to send with the custom request.
64
+ * Parameters to send with the custom request.
65
65
  */
66
66
  body?: Record<string, any>;
67
67
  };
@@ -71,15 +71,15 @@ export type PostProps = {
71
71
  */
72
72
  export type PutProps = {
73
73
  /**
74
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
74
+ * Path of the endpoint, anything after \"/1\" must be specified.
75
75
  */
76
76
  path: string;
77
77
  /**
78
- * Query parameters to be applied to the current query.
78
+ * Query parameters to apply to the current query.
79
79
  */
80
80
  parameters?: Record<string, any>;
81
81
  /**
82
- * The parameters to send with the custom request.
82
+ * Parameters to send with the custom request.
83
83
  */
84
84
  body?: Record<string, any>;
85
85
  };
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@algolia/client-personalization",
3
- "version": "5.0.0-alpha.73",
3
+ "version": "5.0.0-alpha.75",
4
4
  "description": "JavaScript client for client-personalization",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
7
7
  "author": "Algolia",
8
+ "type": "module",
8
9
  "exports": {
9
10
  ".": {
10
11
  "node": {
@@ -38,14 +39,14 @@
38
39
  "clean": "rm -rf ./dist || true"
39
40
  },
40
41
  "dependencies": {
41
- "@algolia/client-common": "5.0.0-alpha.73",
42
- "@algolia/requester-browser-xhr": "5.0.0-alpha.73",
43
- "@algolia/requester-node-http": "5.0.0-alpha.73"
42
+ "@algolia/client-common": "5.0.0-alpha.75",
43
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.75",
44
+ "@algolia/requester-node-http": "5.0.0-alpha.75"
44
45
  },
45
46
  "devDependencies": {
46
- "@types/node": "18.16.18",
47
- "rollup": "2.79.1",
48
- "typescript": "5.0.4"
47
+ "@types/node": "18.17.0",
48
+ "rollup": "3.26.3",
49
+ "typescript": "5.1.6"
49
50
  },
50
51
  "engines": {
51
52
  "node": ">= 14.0.0"