ocr-space-api-wrapper 2.1.2 → 2.2.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/.eslintrc.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "node": true,
6
6
  "mocha": true
7
7
  },
8
- "extends": "google",
8
+ "extends": ["eslint:recommended", "google"],
9
9
  "parserOptions": {
10
10
  "ecmaVersion": 12
11
11
  },
@@ -9,15 +9,12 @@ on:
9
9
  jobs:
10
10
  build:
11
11
  runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- node-version: [14.x]
15
12
  steps:
16
- - uses: actions/checkout@v2
17
- - name: Use Node.js ${{ matrix.node-version }}
18
- uses: actions/setup-node@v1
13
+ - uses: actions/checkout@v3
14
+ - uses: actions/setup-node@v3
19
15
  with:
20
- node-version: ${{ matrix.node-version }}
16
+ node-version: '18'
17
+ cache: 'npm'
21
18
  - run: npm ci
22
19
  - run: npm run lint
23
- - run: npm test
20
+ - run: npm test
@@ -6,10 +6,11 @@ jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v1
10
- - uses: actions/setup-node@v1
9
+ - uses: actions/checkout@v3
10
+ - uses: actions/setup-node@v3
11
11
  with:
12
- node-version: 14.x
12
+ node-version: '18'
13
+ cache: 'npm'
13
14
 
14
15
  - name: Coverage
15
16
  run: |
@@ -6,11 +6,12 @@ jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v2
9
+ - uses: actions/checkout@v3
10
10
  # Setup .npmrc file to publish to npm
11
- - uses: actions/setup-node@v2
11
+ - uses: actions/setup-node@v3
12
12
  with:
13
- node-version: '16.x'
13
+ node-version: '18'
14
+ cache: 'npm'
14
15
  registry-url: 'https://registry.npmjs.org'
15
16
  - run: npm ci
16
17
  - run: npm publish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocr-space-api-wrapper",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "Node.js wrapper for ocr.space APIs.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "homepage": "https://github.com/DavideViolante/ocr-space-api-wrapper#readme",
33
33
  "dependencies": {
34
- "axios": "^0.27.2",
34
+ "axios": "0.27.2",
35
35
  "form-data": "^4.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "eslint": "^8.12.0",
38
+ "eslint": "^8.33.0",
39
39
  "eslint-config-google": "^0.14.0",
40
- "mocha": "^10.0.0",
40
+ "mocha": "^10.2.0",
41
41
  "nyc": "^15.1.0"
42
42
  }
43
43
  }