particle-api-js 9.4.0 → 10.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/.circleci/config.yml +7 -5
- package/.eslintrc.js +3 -3
- package/CHANGELOG.md +8 -0
- package/RELEASE.md +1 -1
- package/dist/particle.min.js +227 -192
- package/dist/particle.min.js.map +1 -1
- package/docs/api.md +561 -103
- package/fs.js +2 -0
- package/lib/Agent.js +320 -221
- package/lib/Agent.js.map +1 -1
- package/lib/Particle.js +645 -62
- package/lib/Particle.js.map +1 -1
- package/package.json +10 -10
- package/test/Agent.integration.js +3 -1
- package/test/Agent.spec.js +173 -289
- package/test/EventStream.spec.js +1 -1
- package/test/Particle.integration.js +5 -4
- package/test/Particle.spec.js +325 -11
- package/lib/superagent-binary-parser.js +0 -20
- package/lib/superagent-binary-parser.js.map +0 -1
- /package/{test/EventStream-e2e-browser.html → EventStream-e2e-browser.html} +0 -0
- /package/{test/EventStream-e2e-node.js → EventStream-e2e-node.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "particle-api-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Particle API Client",
|
|
5
5
|
"main": "lib/Particle.js",
|
|
6
6
|
"scripts": {
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"babelify": "^7.3.0",
|
|
56
56
|
"brfs": "^1.4.3",
|
|
57
57
|
"browserify": "^13.0.0",
|
|
58
|
-
"chai": "^3.
|
|
59
|
-
"chai-as-promised": "^
|
|
58
|
+
"chai": "^4.3.6",
|
|
59
|
+
"chai-as-promised": "^7.1.1",
|
|
60
60
|
"documentation": "^4.0.0-rc.1",
|
|
61
|
-
"eslint": "^
|
|
61
|
+
"eslint": "^8.17.0",
|
|
62
62
|
"eslint-config-particle": "^2.2.1",
|
|
63
63
|
"karma": "^1.1.1",
|
|
64
64
|
"karma-browserify": "^5.1.0",
|
|
@@ -72,18 +72,18 @@
|
|
|
72
72
|
"nyc": "^15.1.0",
|
|
73
73
|
"should": "^9.0.0",
|
|
74
74
|
"sinon": "^7.2.5",
|
|
75
|
-
"sinon-
|
|
76
|
-
"sinon-chai": "^3.3.0",
|
|
75
|
+
"sinon-chai": "^3.7.0",
|
|
77
76
|
"watchify": "^3.7.0"
|
|
78
77
|
},
|
|
79
78
|
"dependencies": {
|
|
80
79
|
"babel-runtime": "^6.9.2",
|
|
81
|
-
"form-data": "
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
80
|
+
"form-data": "^4.0.0",
|
|
81
|
+
"node-fetch": "^2.7.0",
|
|
82
|
+
"qs": "^6.11.2",
|
|
83
|
+
"stream-http": "^3.2.0"
|
|
85
84
|
},
|
|
86
85
|
"browser": {
|
|
86
|
+
"./fs": false,
|
|
87
87
|
"http": "stream-http",
|
|
88
88
|
"https": "stream-http"
|
|
89
89
|
},
|
|
@@ -27,7 +27,9 @@ import Agent from '../src/Agent';
|
|
|
27
27
|
|
|
28
28
|
describe('Agent', () => {
|
|
29
29
|
if (!process.env.SKIP_AGENT_TEST){
|
|
30
|
-
it('can fetch a webpage', ()
|
|
30
|
+
it('can fetch a webpage', function cb() {
|
|
31
|
+
this.retries(5);
|
|
32
|
+
this.timeout(6000);
|
|
31
33
|
const agent = new Agent();
|
|
32
34
|
const query = { a: '1', b: '2' };
|
|
33
35
|
const result = agent.get({ uri: 'http://httpbin.org/get', query });
|