odesli.js 1.3.9 → 2.0.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.
- package/README.md +97 -85
- package/lib/index.d.ts +114 -17
- package/lib/index.js +893 -201
- package/lib/index.mjs +6 -3
- package/package.json +8 -2
- package/.eslintrc.js +0 -33
- package/.gitattributes +0 -1
- package/.github/dependabot.yml +0 -56
- package/.github/workflows/ci.yml +0 -94
- package/.github/workflows/dependabot-auto-merge.yml +0 -137
- package/.github/workflows/publish-github-packages.yml +0 -46
- package/.github/workflows/publish-npm.yml +0 -133
- package/.prettierignore +0 -31
- package/.prettierrc +0 -11
- package/API_IMPROVEMENTS.md +0 -318
- package/CHANGELOG.md +0 -256
- package/CODE_OF_CONDUCT.md +0 -125
- package/CONTRIBUTING.md +0 -104
- package/RELEASE_NOTES_1.1.0.md +0 -84
- package/SECURITY.md +0 -112
- package/examples/README.md +0 -442
- package/examples/advanced-features-example.js +0 -205
- package/examples/advanced-usage.js +0 -247
- package/examples/basic-usage.js +0 -100
- package/examples/cache-test.js +0 -119
- package/examples/rate-limiter-strategies.js +0 -83
- package/examples/test-apple-music-extraction.js +0 -60
- package/examples/user-agent-example.js +0 -46
- package/jest.config.js +0 -14
- package/jsdoc.json +0 -24
- package/scripts/version-bump.js +0 -41
- package/tests/advanced-features.test.js +0 -423
- package/tests/odesli.test.js +0 -742
- package/tests/setup.js +0 -22
- package/tsconfig.json +0 -21
package/tests/setup.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Jest setup file
|
|
2
|
-
// This file runs before each test
|
|
3
|
-
|
|
4
|
-
// Mock fetch globally
|
|
5
|
-
global.fetch = jest.fn();
|
|
6
|
-
|
|
7
|
-
// Reset all mocks before each test
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
jest.clearAllMocks();
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
// Mock console methods to reduce noise in tests
|
|
13
|
-
global.console = {
|
|
14
|
-
...console,
|
|
15
|
-
log: jest.fn(),
|
|
16
|
-
debug: jest.fn(),
|
|
17
|
-
info: jest.fn(),
|
|
18
|
-
warn: jest.fn(),
|
|
19
|
-
error: jest.fn(),
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
require('jest-fetch-mock').enableMocks();
|
package/tsconfig.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"strict": true,
|
|
4
|
-
"moduleResolution": "node",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"declarationMap": true,
|
|
7
|
-
"removeComments": false,
|
|
8
|
-
"alwaysStrict": true,
|
|
9
|
-
"pretty": true,
|
|
10
|
-
"module": "commonjs",
|
|
11
|
-
"target": "es2019",
|
|
12
|
-
"lib": ["es2019", "es2020.promise", "es2020.string"],
|
|
13
|
-
"sourceMap": true,
|
|
14
|
-
"skipDefaultLibCheck": true,
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"allowSyntheticDefaultImports": true,
|
|
17
|
-
"forceConsistentCasingInFileNames": true
|
|
18
|
-
},
|
|
19
|
-
"include": ["lib/**/*"],
|
|
20
|
-
"exclude": ["node_modules"]
|
|
21
|
-
}
|