ziplayer 0.2.6 → 0.2.7-dev.0

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,10 +1,10 @@
1
- /**
2
- * Utility function to add timeout to a promise
3
- * @param promise The promise to add timeout to
4
- * @param timeoutMs Timeout in milliseconds
5
- * @param message Error message when timeout occurs
6
- * @returns Promise that rejects if timeout is reached
7
- */
8
- export function withTimeout<T>(promise: Promise<T>, timeoutMs: number, message: string): Promise<T> {
9
- return Promise.race([promise, new Promise<never>((_, reject) => setTimeout(() => reject(new Error(message)), timeoutMs))]);
10
- }
1
+ /**
2
+ * Utility function to add timeout to a promise
3
+ * @param promise The promise to add timeout to
4
+ * @param timeoutMs Timeout in milliseconds
5
+ * @param message Error message when timeout occurs
6
+ * @returns Promise that rejects if timeout is reached
7
+ */
8
+ export function withTimeout<T>(promise: Promise<T>, timeoutMs: number, message: string): Promise<T> {
9
+ return Promise.race([promise, new Promise<never>((_, reject) => setTimeout(() => reject(new Error(message)), timeoutMs))]);
10
+ }
package/tsconfig.json CHANGED
@@ -1,23 +1,22 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2021",
4
- "module": "commonjs",
5
- "lib": ["ES2021"],
6
- "outDir": "./dist",
7
- "rootDir": "./src",
8
- "strict": true,
9
- "esModuleInterop": true,
10
- "skipLibCheck": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "declaration": true,
13
- "declarationMap": true,
14
- "sourceMap": true,
15
- "moduleResolution": "node",
16
- "allowSyntheticDefaultImports": true,
17
- "experimentalDecorators": true,
18
- "emitDecoratorMetadata": true,
19
- "resolveJsonModule": true
20
- },
21
- "include": ["src/**/*"],
22
- "exclude": ["node_modules", "dist", "examples"]
23
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2021",
4
+ "module": "commonjs",
5
+ "lib": ["ES2021"],
6
+ "outDir": "./dist",
7
+ "rootDir": "./src",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "declaration": true,
13
+ "declarationMap": true,
14
+ "sourceMap": true,
15
+ "allowSyntheticDefaultImports": true,
16
+ "experimentalDecorators": true,
17
+ "emitDecoratorMetadata": true,
18
+ "resolveJsonModule": true
19
+ },
20
+ "include": ["src/**/*"],
21
+ "exclude": ["node_modules", "dist", "examples"]
22
+ }