@hopecloud/jetstream-player 1.0.28 → 1.0.31

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/README.md ADDED
@@ -0,0 +1 @@
1
+ Docs: https://jetstream-player.docs.hope.cloud/
@@ -1 +1 @@
1
- {"version":3,"file":"iframe-builder-src.d.ts","sourceRoot":"","sources":["../src/iframe-builder-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAAsB;IAErC,MAAM,SAAsB;IAE5B,OAAO,MAAwB;gBAEnB,OAAO,EAAE,mBAAmB;IAQxC,oBAAoB;IAiBpB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAYzC,QAAQ;CAaT"}
1
+ {"version":3,"file":"iframe-builder-src.d.ts","sourceRoot":"","sources":["../src/iframe-builder-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAAsB;IAErC,MAAM,SAAsB;IAE5B,OAAO,MAAwB;gBAEnB,OAAO,EAAE,mBAAmB;IAQxC,oBAAoB;IAiBpB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAYzC,QAAQ;CAeT"}
@@ -36,7 +36,9 @@ export class IFrameBuilderSrc {
36
36
  if (this.options.playerId) {
37
37
  url.href = this.appendPath(this.options.playerId, url.href);
38
38
  }
39
- this.options.region === 'eu' && url.searchParams.append('region', 'eu');
39
+ if (this.options.region === 'eu') {
40
+ url.searchParams.append('region', 'eu');
41
+ }
40
42
  return url.href;
41
43
  }
42
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,uBACtB,aAAa,MAAM,CAAC,MAG5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,sBAAuB,CAAC,WAExD,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,MAAM,YAW/C,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAAI,CAAC,mBAC3B,YAAY,CAAC,MAAM,CAAC,KAEM,CAClC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,CAAC,kBAAkB,CAAC,WAExD,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,MAAM,YAa/C,CAAC"}
package/dist/utils.js CHANGED
@@ -13,6 +13,7 @@ export const isValidEventData = (rawData) => {
13
13
  return true;
14
14
  }
15
15
  catch (error) {
16
+ console.log('Error parsing JSON', error);
16
17
  return false;
17
18
  }
18
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hopecloud/jetstream-player",
3
- "version": "1.0.28",
3
+ "version": "1.0.31",
4
4
  "description": "Jetstream Embed Player API",
5
5
  "type": "module",
6
6
  "author": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "git+https://github.com/deeepvision/hcc-jetstream-player.git"
12
+ "url": "https://github.com/deeepvision/hcc-jetstream-player.git"
13
13
  },
14
14
  "source": "src/index.ts",
15
15
  "main": "dist/index.js",
@@ -36,19 +36,22 @@
36
36
  "docs:dev": "vitepress dev docs",
37
37
  "docs:build": "vitepress build docs",
38
38
  "docs:preview": "vitepress preview docs",
39
- "lint": "eslint \"src/**/*.ts\"",
40
- "lint:fix": "eslint \"src/**/*.ts\" --fix",
41
- "version:next": "npm version patch -m \"release: %s\""
39
+ "lint": "eslint",
40
+ "lint:fix": "eslint --fix",
41
+ "publish:next": "npm version patch -m \"release: %s\" && npm publish && git push origin"
42
42
  },
43
43
  "devDependencies": {
44
- "@typescript-eslint/eslint-plugin": "^7.3.1",
45
- "@typescript-eslint/parser": "^7.3.1",
44
+ "@eslint/eslintrc": "^3.2.0",
45
+ "@eslint/js": "^9.17.0",
46
+ "@typescript-eslint/eslint-plugin": "^8.19.1",
47
+ "@typescript-eslint/parser": "^8.19.1",
46
48
  "copyfiles": "^2.4.1",
47
- "eslint": "^8.57.0",
49
+ "eslint": "^9.17.0",
48
50
  "eslint-config-prettier": "^9.1.0",
49
- "prettier": "3.2.5",
50
- "rimraf": "^5.0.5",
51
- "typescript": "^5.4.3",
52
- "vitepress": "1.0.1"
51
+ "globals": "^15.14.0",
52
+ "prettier": "3.4.2",
53
+ "rimraf": "^6.0.1",
54
+ "typescript": "^5.7.3",
55
+ "vitepress": "1.5.0"
53
56
  }
54
57
  }