@everymatrix/player-account-controller 0.0.301 → 0.0.304

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.
package/index.html CHANGED
@@ -35,7 +35,7 @@
35
35
  endpoint="https://demo-api.stage.norway.everymatrix.com/v1"
36
36
  cmsendpoint="https://wt1-stage.everymatrix.com/apijson"
37
37
  playerid="3856617"
38
- session="fc3c3c5b-8a89-468b-a6fc-6deffb706ea3"
38
+ session="626be784-56aa-4311-96b3-4c2402f155b5"
39
39
  customnotifications="#58586B,#2687F6,#D0046C"
40
40
  lang="en"
41
41
  env="stage"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-controller",
3
- "version": "0.0.301",
3
+ "version": "0.0.304",
4
4
  "main": "dist/player-account-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -29,8 +29,8 @@
29
29
  "typescript": "^3.9.3"
30
30
  },
31
31
  "dependencies": {
32
- "@everymatrix/player-account-menu": "^0.0.301",
33
- "@everymatrix/player-account-notifications": "^0.0.301",
32
+ "@everymatrix/player-account-menu": "^0.0.304",
33
+ "@everymatrix/player-account-notifications": "^0.0.304",
34
34
  "cross-env": "^7.0.3",
35
35
  "sirv-cli": "^1.0.0",
36
36
  "svelte": "^3.0.0"
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "0aaa2050b41f07624312c34d37c3b3b55bb33fcb"
41
+ "gitHead": "d89b47f1860e8b310635d3dbff60138a4eef1a70"
42
42
  }
@@ -384,9 +384,14 @@
384
384
 
385
385
  url = new URL(`v1/player/${userId}/limits/${limitName}`, endpoint)
386
386
 
387
- deletedPeriodLimit.forEach((item) => {
388
- url.searchParams.append('periods', item);
389
- });
387
+ //if single limit send string
388
+ if (Array.isArray(deletedPeriodLimit)) {
389
+ deletedPeriodLimit.forEach((item) => {
390
+ url.searchParams.append('periods', item);
391
+ });
392
+ } else {
393
+ url.searchParams.append('periods', deletedPeriodLimit);
394
+ }
390
395
 
391
396
  fetch(url.href, deleteOptions)
392
397
  .then((res:any):void => {