lob 7.1.0 → 8.1.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 +17 -5
- package/package.json +23 -16
package/README.md
CHANGED
|
@@ -3,12 +3,8 @@
|
|
|
3
3
|
[downloads-image]: http://img.shields.io/npm/dm/lob.svg
|
|
4
4
|
[npm-url]: https://npmjs.org/package/lob
|
|
5
5
|
[npm-image]: https://badge.fury.io/js/lob.svg
|
|
6
|
-
[travis-url]: https://travis-ci.org/lob/lob-node
|
|
7
|
-
[travis-image]: https://travis-ci.org/lob/lob-node.svg?branch=master
|
|
8
|
-
[depstat-url]: https://david-dm.org/Lob/Lob-node
|
|
9
|
-
[depstat-image]: https://david-dm.org/Lob/Lob-node.svg
|
|
10
6
|
|
|
11
|
-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]
|
|
7
|
+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [](https://github.com/lob/lob-node/actions/workflows/run_tests.yml) [](https://coveralls.io/r/lob/lob-node?branch=master)
|
|
12
8
|
|
|
13
9
|
Node.js wrapper for the [Lob.com](https://lob.com) API. See full Lob.com documentation [here](https://lob.com/docs/node).
|
|
14
10
|
******
|
|
@@ -63,6 +59,8 @@ $ git clone git@github.com:lob/lob-node.git
|
|
|
63
59
|
$ npm install
|
|
64
60
|
```
|
|
65
61
|
|
|
62
|
+
**Requirements:** Node.js >= 24.15.0, npm >= 11.5.1
|
|
63
|
+
|
|
66
64
|
### Usage
|
|
67
65
|
```javascript
|
|
68
66
|
const Lob = require('lob')('YOUR API KEY');
|
|
@@ -164,6 +162,20 @@ Some integration tests require a live API key:
|
|
|
164
162
|
TEST_API_KEY=your_test_key LIVE_API_KEY=your_live_key npm run test:integration
|
|
165
163
|
```
|
|
166
164
|
|
|
165
|
+
To run lint:
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
npm run lint
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
To check for vulnerabilities:
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
npm audit
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Target: zero `moderate` and zero `high` findings. Current status: **0 vulnerabilities**.
|
|
178
|
+
|
|
167
179
|
=======================
|
|
168
180
|
|
|
169
181
|
Copyright © 2013 Lob.com
|
package/package.json
CHANGED
|
@@ -10,29 +10,32 @@
|
|
|
10
10
|
"Lob.com",
|
|
11
11
|
"printing"
|
|
12
12
|
],
|
|
13
|
-
"version": "
|
|
13
|
+
"version": "8.1.0",
|
|
14
14
|
"homepage": "https://github.com/lob/lob-node",
|
|
15
15
|
"author": "Lob <support@lob.com> (https://lob.com/)",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"axios": "^1.
|
|
17
|
+
"axios": "^1.16.1",
|
|
18
18
|
"form-data": "^4.0.5"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"@eslint/js": "^10.0.1",
|
|
22
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
21
23
|
"agentkeepalive": "^4.1.0",
|
|
22
|
-
"chai": "^2.2
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"eslint": "^
|
|
27
|
-
"eslint-
|
|
24
|
+
"chai": "^6.2.2",
|
|
25
|
+
"cross-env": "^10.1.0",
|
|
26
|
+
"csv-parse": "^6.2.1",
|
|
27
|
+
"eslint": "^10.4.0",
|
|
28
|
+
"eslint-config-lob": "^7.0.0",
|
|
29
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
30
|
+
"eslint-plugin-lob": "^3.0.2",
|
|
28
31
|
"generate-changelog": "^1.0.0",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
32
|
+
"globals": "^17.6.0",
|
|
33
|
+
"json-2-csv": "^5.5.10",
|
|
34
|
+
"mocha": "^11.7.5",
|
|
31
35
|
"moment": "^2.22.1",
|
|
32
|
-
"nock": "^14.0.
|
|
33
|
-
"nyc": "^
|
|
34
|
-
"p-map": "^
|
|
35
|
-
"uuid": "^3.1.0"
|
|
36
|
+
"nock": "^14.0.15",
|
|
37
|
+
"nyc": "^18.0.0",
|
|
38
|
+
"p-map": "^7.0.4"
|
|
36
39
|
},
|
|
37
40
|
"repository": {
|
|
38
41
|
"type": "git",
|
|
@@ -41,7 +44,7 @@
|
|
|
41
44
|
"bugs:": "https://github.com/lob/lob-node/issues",
|
|
42
45
|
"main": "./lib/index",
|
|
43
46
|
"engines": {
|
|
44
|
-
"node": ">=
|
|
47
|
+
"node": ">= 24.15.0",
|
|
45
48
|
"npm": ">= 11.5.1"
|
|
46
49
|
},
|
|
47
50
|
"scripts": {
|
|
@@ -66,5 +69,9 @@
|
|
|
66
69
|
"lib",
|
|
67
70
|
"LICENSE.txt"
|
|
68
71
|
],
|
|
69
|
-
"license": "MIT"
|
|
72
|
+
"license": "MIT",
|
|
73
|
+
"overrides": {
|
|
74
|
+
"serialize-javascript": "^7.0.5",
|
|
75
|
+
"diff": "^9.0.0"
|
|
76
|
+
}
|
|
70
77
|
}
|