imposium-js-sdk 3.5.5 → 3.5.7

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.
Files changed (70) hide show
  1. package/.prettierignore +13 -0
  2. package/CODESTEWARDS.md +12 -0
  3. package/README.md +14 -15
  4. package/coverage/base.css +224 -0
  5. package/coverage/block-navigation.js +87 -0
  6. package/coverage/cobertura-coverage.xml +1574 -0
  7. package/coverage/coverage-final.json +13 -0
  8. package/coverage/coverage-summary.json +14 -0
  9. package/coverage/favicon.png +0 -0
  10. package/coverage/index.html +176 -0
  11. package/coverage/junit.xml +355 -0
  12. package/coverage/lcov-report/base.css +224 -0
  13. package/coverage/lcov-report/block-navigation.js +87 -0
  14. package/coverage/lcov-report/favicon.png +0 -0
  15. package/coverage/lcov-report/index.html +176 -0
  16. package/coverage/lcov-report/prettify.css +1 -0
  17. package/coverage/lcov-report/prettify.js +2 -0
  18. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  19. package/coverage/lcov-report/sorter.js +210 -0
  20. package/coverage/lcov-report/src/Entry.ts.html +205 -0
  21. package/coverage/lcov-report/src/client/Client.ts.html +1468 -0
  22. package/coverage/lcov-report/src/client/DirectDeliveryPipe.ts.html +658 -0
  23. package/coverage/lcov-report/src/client/http/API.ts.html +526 -0
  24. package/coverage/lcov-report/src/client/http/index.html +116 -0
  25. package/coverage/lcov-report/src/client/index.html +131 -0
  26. package/coverage/lcov-report/src/index.html +116 -0
  27. package/coverage/lcov-report/src/scaffolding/ExceptionPipe.ts.html +430 -0
  28. package/coverage/lcov-report/src/scaffolding/Exceptions.ts.html +616 -0
  29. package/coverage/lcov-report/src/scaffolding/GoogleAnalytics.ts.html +424 -0
  30. package/coverage/lcov-report/src/scaffolding/Helpers.ts.html +412 -0
  31. package/coverage/lcov-report/src/scaffolding/Version.ts.html +118 -0
  32. package/coverage/lcov-report/src/scaffolding/index.html +176 -0
  33. package/coverage/lcov-report/src/video/FallbackPlayer.ts.html +133 -0
  34. package/coverage/lcov-report/src/video/Player.ts.html +1663 -0
  35. package/coverage/lcov-report/src/video/VideoPlayer.ts.html +679 -0
  36. package/coverage/lcov-report/src/video/index.html +146 -0
  37. package/coverage/lcov.info +1426 -0
  38. package/coverage/prettify.css +1 -0
  39. package/coverage/prettify.js +2 -0
  40. package/coverage/sort-arrow-sprite.png +0 -0
  41. package/coverage/sorter.js +210 -0
  42. package/coverage/src/Entry.ts.html +205 -0
  43. package/coverage/src/client/Client.ts.html +1468 -0
  44. package/coverage/src/client/DirectDeliveryPipe.ts.html +658 -0
  45. package/coverage/src/client/http/API.ts.html +526 -0
  46. package/coverage/src/client/http/index.html +116 -0
  47. package/coverage/src/client/index.html +131 -0
  48. package/coverage/src/index.html +116 -0
  49. package/coverage/src/scaffolding/ExceptionPipe.ts.html +430 -0
  50. package/coverage/src/scaffolding/Exceptions.ts.html +616 -0
  51. package/coverage/src/scaffolding/GoogleAnalytics.ts.html +424 -0
  52. package/coverage/src/scaffolding/Helpers.ts.html +412 -0
  53. package/coverage/src/scaffolding/Version.ts.html +118 -0
  54. package/coverage/src/scaffolding/index.html +176 -0
  55. package/coverage/src/video/FallbackPlayer.ts.html +133 -0
  56. package/coverage/src/video/Player.ts.html +1663 -0
  57. package/coverage/src/video/VideoPlayer.ts.html +679 -0
  58. package/coverage/src/video/index.html +146 -0
  59. package/eslint-report.xml +1 -0
  60. package/examples/web/.eslintrc.json +10 -14
  61. package/lib/imposium.js +8023 -7999
  62. package/lib/imposium.js.map +1 -1
  63. package/lib/imposium.min.js +1 -1
  64. package/lib/imposium.min.js.LICENSE.txt +1 -1
  65. package/lib/imposium.min.js.map +1 -1
  66. package/package.json +38 -9
  67. package/tsconfig.eslint.json +8 -0
  68. package/vitest.config.ts +37 -0
  69. package/.eslintrc.js +0 -168
  70. package/CODEOWNERS +0 -1
package/package.json CHANGED
@@ -1,32 +1,46 @@
1
1
  {
2
2
  "name": "imposium-js-sdk",
3
- "version": "3.5.5",
3
+ "version": "3.5.7",
4
4
  "license": "MIT",
5
- "author": [
6
- "Greg Webber",
7
- "Patrick Chisholm"
8
- ],
5
+ "author": "Greg Webber, Patrick Chisholm",
9
6
  "description": "Javascript client and video player for Imposium",
10
- "keywords": "imposium dynamic video nickel media",
7
+ "keywords": ["imposium", "dynamic", "video", "nickel", "media"],
11
8
  "homepage": "https://github.com/NickelMedia/Imposium-JS-SDK",
12
9
  "repository": {
13
10
  "type": "git",
14
11
  "url": "https://github.com/NickelMedia/Imposium-JS-SDK.git"
15
12
  },
16
13
  "main": "lib/imposium.min.js",
14
+ "scripts": {
15
+ "lint": "npx eslint \"./src/**/*.*\"",
16
+ "lint-fix": "npm run lint -- --fix",
17
+ "format": "prettier --write \"**/*.{js,json,ts,md}\"",
18
+ "check-formatting": "prettier --check \"**/*.{js,json,ts,md}\"",
19
+ "test": "vitest",
20
+ "test:run": "vitest run",
21
+ "test:ui": "vitest --ui",
22
+ "test:coverage": "vitest run --coverage"
23
+ },
17
24
  "devDependencies": {
18
- "@types/node": "^10.14.15",
25
+ "@imposium-hub/eslint-config": "^1.1.0",
26
+ "@imposium-hub/prettier-config": "^2.1.0",
27
+ "@types/node": "^20.0.0",
28
+ "@vitest/coverage-v8": "^4.1.8",
29
+ "@vitest/ui": "^4.1.8",
30
+ "jsdom": "^25.0.1",
31
+ "vitest": "^4.1.8",
19
32
  "@typescript-eslint/eslint-plugin": "^5.62.0",
20
33
  "@typescript-eslint/parser": "^5.62.0",
21
34
  "dts-generator": "^3.0.0",
22
35
  "ecstatic": "^4.1.4",
23
36
  "eslint": "^8.4.1",
24
- "eslint-plugin-html": "^4.0.6",
37
+ "eslint-config-prettier": "^8.5.0",
25
38
  "eslint-plugin-import": "^2.25.3",
26
- "eslint-plugin-jsdoc": "^37.2.0",
27
39
  "eslint-plugin-prefer-arrow": "^1.2.3",
40
+ "eslint-plugin-unused-imports": "^2.0.0",
28
41
  "fancy-log": "^1.3.3",
29
42
  "http-server": "^14.0.0",
43
+ "prettier": "^2.6.2",
30
44
  "selenium-webdriver": "^4.0.0-alpha.4",
31
45
  "ts-loader": "^9.2.5",
32
46
  "typescript": "^4.5.3",
@@ -39,5 +53,20 @@
39
53
  "core-js": "^3.19.3",
40
54
  "jwt-decode": "^3.1.2"
41
55
  },
56
+ "eslintConfig": {
57
+ "root": true,
58
+ "extends": [
59
+ "@imposium-hub/eslint-config/typescript-react"
60
+ ],
61
+ "ignorePatterns": [
62
+ "**/*.test.ts",
63
+ "**/*.json",
64
+ "tests/**"
65
+ ],
66
+ "parserOptions": {
67
+ "project": "./tsconfig.eslint.json"
68
+ }
69
+ },
70
+ "prettier": "@imposium-hub/prettier-config",
42
71
  "typings": "./index.d.ts"
43
72
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "skipLibCheck": true
5
+ },
6
+ "include": ["src/**/*"],
7
+ "exclude": ["node_modules", "dist"]
8
+ }
@@ -0,0 +1,37 @@
1
+ /// <reference types="vitest" />
2
+ import { defineConfig } from 'vitest/config';
3
+
4
+ export default defineConfig({
5
+ define: {
6
+ VERSION: '"test"'
7
+ },
8
+ test: {
9
+ environment: 'jsdom',
10
+ include: ['src/**/*.{test,spec}.{ts,js}'],
11
+ exclude: ['node_modules', 'dist', 'lib', '.git'],
12
+ globals: true,
13
+ passWithNoTests: true,
14
+ testTimeout: 10000,
15
+ reporters: ['default', 'junit'],
16
+ outputFile: {
17
+ junit: './coverage/junit.xml'
18
+ },
19
+ coverage: {
20
+ provider: 'v8',
21
+ reporter: ['text', 'json', 'json-summary', 'html', 'lcov', 'cobertura'],
22
+ reportsDirectory: './coverage',
23
+ clean: false,
24
+ include: ['src/**/*.ts'],
25
+ exclude: [
26
+ 'node_modules/',
27
+ '**/*.d.ts',
28
+ '**/*.config.*',
29
+ 'dist/',
30
+ 'lib/',
31
+ 'coverage/',
32
+ '**/*.test.*',
33
+ '**/*.spec.*'
34
+ ]
35
+ }
36
+ }
37
+ });
package/.eslintrc.js DELETED
@@ -1,168 +0,0 @@
1
- /*
2
- 👋 Hi! This file was autogenerated by tslint-to-eslint-config.
3
- https://github.com/typescript-eslint/tslint-to-eslint-config
4
-
5
- It represents the closest reasonable ESLint configuration to this
6
- project's original TSLint configuration.
7
-
8
- We recommend eventually switching this configuration to extend from
9
- the recommended rulesets in typescript-eslint.
10
- https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
11
-
12
- Happy linting! 💖
13
- */
14
- module.exports = {
15
- "env": {
16
- "browser": true,
17
- "node": true
18
- },
19
- "extends": [
20
- "plugin:@typescript-eslint/recommended",
21
- "plugin:@typescript-eslint/recommended-requiring-type-checking"
22
- ],
23
- "parser": "@typescript-eslint/parser",
24
- "parserOptions": {
25
- "project": "tsconfig.json",
26
- "sourceType": "module"
27
- },
28
- "plugins": [
29
- "eslint-plugin-import",
30
- "eslint-plugin-jsdoc",
31
- "eslint-plugin-prefer-arrow",
32
- "@typescript-eslint"
33
- ],
34
- "rules": {
35
- "@typescript-eslint/adjacent-overload-signatures": "error",
36
- "@typescript-eslint/array-type": [
37
- "error",
38
- {
39
- "default": "array"
40
- }
41
- ],
42
- "@typescript-eslint/ban-types": [
43
- "error",
44
- {
45
- "types": {
46
- "Object": {
47
- "message": "Avoid using the `Object` type. Did you mean `object`?"
48
- },
49
- "Function": {
50
- "message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
51
- },
52
- "Boolean": {
53
- "message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
54
- },
55
- "Number": {
56
- "message": "Avoid using the `Number` type. Did you mean `number`?"
57
- },
58
- "String": {
59
- "message": "Avoid using the `String` type. Did you mean `string`?"
60
- },
61
- "Symbol": {
62
- "message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
63
- }
64
- }
65
- }
66
- ],
67
- "@typescript-eslint/consistent-type-assertions": "error",
68
- "@typescript-eslint/dot-notation": "off",
69
- "@typescript-eslint/no-unsafe-argument": "off",
70
- "@typescript-eslint/no-unsafe-call": "off",
71
- "@typescript-eslint/no-unsafe-assignment": "off",
72
- "@typescript-eslint/no-empty-function": "error",
73
- "@typescript-eslint/no-inferrable-types":"off",
74
- "@typescript-eslint/restrict-template-expressions":"off",
75
- "@typescript-eslint/no-unsafe-member-access":"off",
76
- "@typescript-eslint/no-unsafe-return":"off",
77
- "@typescript-eslint/no-empty-interface": "error",
78
- "@typescript-eslint/no-explicit-any": "off",
79
- "@typescript-eslint/no-misused-new": "error",
80
- "@typescript-eslint/no-namespace": "error",
81
- "@typescript-eslint/no-parameter-properties": "off",
82
- "@typescript-eslint/no-shadow": [
83
- "error",
84
- {
85
- "hoist": "all"
86
- }
87
- ],
88
- "@typescript-eslint/no-unused-expressions": "error",
89
- "@typescript-eslint/no-use-before-define": "off",
90
- "@typescript-eslint/no-var-requires": "off",
91
- "@typescript-eslint/prefer-for-of": "error",
92
- "@typescript-eslint/prefer-function-type": "error",
93
- "@typescript-eslint/prefer-namespace-keyword": "error",
94
- "@typescript-eslint/quotes": [
95
- "error",
96
- "single",
97
- {
98
- "allowTemplateLiterals": true
99
- }
100
- ],
101
- "@typescript-eslint/triple-slash-reference": [
102
- "error",
103
- {
104
- "path": "always",
105
- "types": "prefer-import",
106
- "lib": "always"
107
- }
108
- ],
109
- "@typescript-eslint/unified-signatures": "error",
110
- "comma-dangle": "off",
111
- "complexity": "off",
112
- "constructor-super": "error",
113
- "dot-notation": "off",
114
- "eqeqeq": [
115
- "error",
116
- "smart"
117
- ],
118
- "guard-for-in": "error",
119
- "id-denylist": "error",
120
- "id-match": "error",
121
- "import/order": "off",
122
- "jsdoc/check-alignment": "error",
123
- "jsdoc/check-indentation": "error",
124
- "jsdoc/newline-after-description": "error",
125
- "max-classes-per-file": "off",
126
- "new-parens": "error",
127
- "no-bitwise": "off",
128
- "no-caller": "error",
129
- "no-cond-assign": "error",
130
- "no-console": "off",
131
- "no-debugger": "error",
132
- "no-empty": "error",
133
- "no-empty-function": "error",
134
- "no-eval": "error",
135
- "no-fallthrough": "off",
136
- "no-invalid-this": "off",
137
- "no-new-wrappers": "error",
138
- "no-shadow": "error",
139
- "no-throw-literal": "error",
140
- "no-trailing-spaces": "error",
141
- "no-undef-init": "error",
142
- "no-underscore-dangle": "error",
143
- "no-unsafe-finally": "error",
144
- "no-unused-expressions": "error",
145
- "no-unused-labels": "error",
146
- "no-use-before-define": "off",
147
- "no-var": "error",
148
- "object-shorthand": "error",
149
- "one-var": [
150
- "error",
151
- "never"
152
- ],
153
- "prefer-arrow/prefer-arrow-functions": "error",
154
- "prefer-const": "error",
155
- "radix": "error",
156
- "spaced-comment": [
157
- "error",
158
- "always",
159
- {
160
- "markers": [
161
- "/"
162
- ]
163
- }
164
- ],
165
- "use-isnan": "error",
166
- "valid-typeof": "off"
167
- }
168
- };
package/CODEOWNERS DELETED
@@ -1 +0,0 @@
1
- * @webbergreg