imposium-js-sdk 3.5.6 → 3.5.8

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/package.json CHANGED
@@ -1,32 +1,46 @@
1
1
  {
2
2
  "name": "imposium-js-sdk",
3
- "version": "3.5.6",
3
+ "version": "3.5.8",
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",
@@ -34,10 +48,25 @@
34
48
  "webpack-cli": "^4.9.1"
35
49
  },
36
50
  "dependencies": {
37
- "@sentry/browser": "^10.22.0",
38
- "axios": "^1.13.1",
51
+ "@sentry/browser": "^6.16.0",
52
+ "axios": "^0.24.0",
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