odesli.js 1.3.8 → 1.3.9
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.
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
permissions:
|
|
12
12
|
contents: read
|
|
13
|
-
|
|
13
|
+
id-token: write
|
|
14
14
|
|
|
15
15
|
steps:
|
|
16
16
|
- name: Checkout code
|
|
@@ -24,7 +24,43 @@ jobs:
|
|
|
24
24
|
node-version: '20.x'
|
|
25
25
|
cache: 'npm'
|
|
26
26
|
registry-url: 'https://registry.npmjs.org'
|
|
27
|
+
# OIDC is automatically used when id-token: write permission is set
|
|
27
28
|
|
|
29
|
+
# #region agent log
|
|
30
|
+
- name: Debug - Check npm version (Trusted Publishing requires npm 11.5.1+)
|
|
31
|
+
run: |
|
|
32
|
+
echo "HYPOTHESIS_G: Checking npm version for Trusted Publishing compatibility"
|
|
33
|
+
npm --version
|
|
34
|
+
echo "Required: npm >= 11.5.1 for Trusted Publishing"
|
|
35
|
+
NPM_VERSION=$(npm --version)
|
|
36
|
+
if [ "$(printf '%s\n' "11.5.1" "$NPM_VERSION" | sort -V | head -n1)" != "11.5.1" ]; then
|
|
37
|
+
echo "npm version is too old, upgrading to latest..."
|
|
38
|
+
npm install -g npm@latest
|
|
39
|
+
npm --version
|
|
40
|
+
else
|
|
41
|
+
echo "npm version is compatible"
|
|
42
|
+
fi
|
|
43
|
+
# #endregion
|
|
44
|
+
# #region agent log
|
|
45
|
+
- name: Debug - Check OIDC token availability and workflow context
|
|
46
|
+
run: |
|
|
47
|
+
echo "HYPOTHESIS_A_B_C: Checking OIDC and workflow context"
|
|
48
|
+
echo "Repository: ${{ github.repository }}"
|
|
49
|
+
echo "Expected: MattrAus/odesli.js"
|
|
50
|
+
echo "Workflow ref: ${{ github.workflow_ref }}"
|
|
51
|
+
echo "Workflow file path: .github/workflows/publish-npm.yml"
|
|
52
|
+
echo "Workflow name: ${{ github.workflow }}"
|
|
53
|
+
if [ -n "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" ]; then
|
|
54
|
+
echo "OIDC token request token: SET (length: ${#ACTIONS_ID_TOKEN_REQUEST_TOKEN})"
|
|
55
|
+
else
|
|
56
|
+
echo "OIDC token request token: NOT SET"
|
|
57
|
+
fi
|
|
58
|
+
if [ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
|
|
59
|
+
echo "OIDC token request URL: SET"
|
|
60
|
+
else
|
|
61
|
+
echo "OIDC token request URL: NOT SET"
|
|
62
|
+
fi
|
|
63
|
+
# #endregion
|
|
28
64
|
- name: Install dependencies
|
|
29
65
|
run: npm ci
|
|
30
66
|
|
|
@@ -43,7 +79,55 @@ jobs:
|
|
|
43
79
|
- name: Update package name for npm
|
|
44
80
|
run: npm pkg set name="odesli.js"
|
|
45
81
|
|
|
82
|
+
# #region agent log
|
|
83
|
+
- name: Debug - Check npm configuration before publish
|
|
84
|
+
run: |
|
|
85
|
+
echo "HYPOTHESIS_D_F: Checking npm configuration and authentication"
|
|
86
|
+
echo "NPM_CONFIG_REGISTRY: ${NPM_CONFIG_REGISTRY:-not set}"
|
|
87
|
+
echo "NPM_CONFIG_USERCONFIG: ${NPM_CONFIG_USERCONFIG:-not set}"
|
|
88
|
+
if [ -f .npmrc ]; then
|
|
89
|
+
echo ".npmrc file exists in repo:"
|
|
90
|
+
cat .npmrc | sed 's/\(.*auth.*\)/REDACTED/'
|
|
91
|
+
else
|
|
92
|
+
echo ".npmrc file does NOT exist in repo"
|
|
93
|
+
fi
|
|
94
|
+
if [ -f "${NPM_CONFIG_USERCONFIG:-/home/runner/work/_temp/.npmrc}" ]; then
|
|
95
|
+
echo ".npmrc file from setup-node exists:"
|
|
96
|
+
cat "${NPM_CONFIG_USERCONFIG:-/home/runner/work/_temp/.npmrc}" | sed 's/\(.*auth.*\)/REDACTED/'
|
|
97
|
+
else
|
|
98
|
+
echo ".npmrc file from setup-node does NOT exist"
|
|
99
|
+
fi
|
|
100
|
+
echo "NODE_AUTH_TOKEN length: ${#NODE_AUTH_TOKEN}"
|
|
101
|
+
echo "Package name: $(node -p "require('./package.json').name")"
|
|
102
|
+
echo "Package version: $(node -p "require('./package.json').version")"
|
|
103
|
+
echo "Checking npm config:"
|
|
104
|
+
npm config list 2>&1 | grep -E "(registry|auth|token)" || echo "No auth config found"
|
|
105
|
+
npm whoami 2>&1 || echo "npm whoami failed (expected if not authenticated)"
|
|
106
|
+
# #endregion
|
|
107
|
+
# #region agent log
|
|
108
|
+
- name: Debug - Verify Trusted Publisher match
|
|
109
|
+
run: |
|
|
110
|
+
echo "HYPOTHESIS_A: Verifying Trusted Publisher configuration match"
|
|
111
|
+
echo "GitHub Repository: ${{ github.repository }}"
|
|
112
|
+
echo "GitHub Workflow: ${{ github.workflow }}"
|
|
113
|
+
echo "GitHub Workflow Ref: ${{ github.workflow_ref }}"
|
|
114
|
+
echo "Expected npm config:"
|
|
115
|
+
echo " Repository: MattrAus/odesli.js"
|
|
116
|
+
echo " Workflow file: publish-npm.yml (or .github/workflows/publish-npm.yml)"
|
|
117
|
+
echo "Actual GitHub values:"
|
|
118
|
+
echo " Repository: ${{ github.repository }}"
|
|
119
|
+
echo " Workflow file path: .github/workflows/publish-npm.yml"
|
|
120
|
+
echo " Workflow name: ${{ github.workflow }}"
|
|
121
|
+
# #endregion
|
|
46
122
|
- name: Publish to NPM
|
|
47
|
-
run:
|
|
48
|
-
|
|
49
|
-
|
|
123
|
+
run: |
|
|
124
|
+
echo "HYPOTHESIS_E_FIX: Attempting npm publish with --provenance flag"
|
|
125
|
+
echo "Final npm config check:"
|
|
126
|
+
npm config get registry
|
|
127
|
+
npm config get //registry.npmjs.org/:_authToken 2>&1 | head -c 20 || echo "No auth token in config"
|
|
128
|
+
npm publish --provenance --access public 2>&1 || {
|
|
129
|
+
EXIT_CODE=$?
|
|
130
|
+
echo "npm publish failed with exit code: $EXIT_CODE"
|
|
131
|
+
echo "Error details above"
|
|
132
|
+
exit $EXIT_CODE
|
|
133
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,17 @@ All notable changes to this project will be documented in this file.
|
|
|
7
7
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
8
8
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
|
10
|
-
## [1.3.
|
|
10
|
+
## [1.3.9] - 2025-12-20
|
|
11
|
+
|
|
12
|
+
### Security
|
|
13
|
+
|
|
14
|
+
- **Dependency Security**: Added npm overrides for js-yaml to fix CVE-2025-64718 (prototype pollution vulnerability)
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Updated dependencies via npm update
|
|
19
|
+
|
|
20
|
+
## [1.3.8] - 2025-10-04
|
|
11
21
|
|
|
12
22
|
### Changed
|
|
13
23
|
|
|
@@ -31,7 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
31
41
|
- All tests passing with 100% test suite coverage
|
|
32
42
|
- No security vulnerabilities detected
|
|
33
43
|
|
|
34
|
-
## [1.3.7] - 2025-
|
|
44
|
+
## [1.3.7] - 2025-07-13
|
|
35
45
|
|
|
36
46
|
### Fixed
|
|
37
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "odesli.js",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "Node.js Client to query odesli.co (song.link/album.link) API",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -90,5 +90,8 @@
|
|
|
90
90
|
"ts-jest": "^29.4.4",
|
|
91
91
|
"typescript": "^5.9.3"
|
|
92
92
|
},
|
|
93
|
+
"overrides": {
|
|
94
|
+
"js-yaml": "^4.1.1"
|
|
95
|
+
},
|
|
93
96
|
"homepage": "https://github.com/MattrAus/odesli.js#readme"
|
|
94
97
|
}
|
|
@@ -381,7 +381,7 @@ describe('Advanced Features', () => {
|
|
|
381
381
|
|
|
382
382
|
const summary = metrics.getSummary();
|
|
383
383
|
expect(summary.counters.totalRequests).toBe(5);
|
|
384
|
-
});
|
|
384
|
+
}, 10000);
|
|
385
385
|
|
|
386
386
|
test('should work together - plugins with metrics', async () => {
|
|
387
387
|
const pluginSystem = new PluginSystem();
|