ocr-space-api-wrapper 2.4.1 → 2.4.3

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,19 +1,22 @@
1
1
  name: Publish Package to npmjs
2
+
2
3
  on:
3
4
  release:
4
5
  types: [created]
6
+
7
+ permissions:
8
+ id-token: write # Required for OIDC
9
+ contents: read
10
+
5
11
  jobs:
6
- build:
12
+ publish:
7
13
  runs-on: ubuntu-latest
8
14
  steps:
9
- - uses: actions/checkout@v3
10
- # Setup .npmrc file to publish to npm
11
- - uses: actions/setup-node@v3
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v4
12
17
  with:
13
- node-version: '18'
18
+ node-version: '24'
14
19
  cache: 'npm'
15
20
  registry-url: 'https://registry.npmjs.org'
16
21
  - run: npm ci
17
- - run: npm publish
18
- env:
19
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22
+ - run: npm publish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocr-space-api-wrapper",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Node.js wrapper for ocr.space APIs.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "homepage": "https://github.com/DavideViolante/ocr-space-api-wrapper#readme",
33
33
  "dependencies": {
34
- "axios": "~0.30.0",
34
+ "axios": "~0.30.2",
35
35
  "form-data": "^4.0.3"
36
36
  },
37
37
  "devDependencies": {
@@ -39,6 +39,6 @@
39
39
  "eslint-config-google": "^0.14.0",
40
40
  "husky": "^9.1.7",
41
41
  "mocha": "^11.7.1",
42
- "nyc": "^17.1.0"
42
+ "nyc": "^18.0.0"
43
43
  }
44
44
  }