proxy-rotator-js 1.0.6 → 1.0.7

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 CHANGED
@@ -20,7 +20,7 @@ import ProxyRotator from 'proxy-rotator-js'
20
20
 
21
21
  let proxies = ['proxy1', 'proxy2', 'proxy3']
22
22
 
23
- let rotator = ProxyRotator(proxies, options={})
23
+ let rotator = new ProxyRotator(proxies, options={})
24
24
 
25
25
  console.log( rotator.next() ) // 'proxy1'
26
26
  console.log( rotator.next() ) // 'proxy2'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proxy-rotator-js",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "description": "Proxy Rotator",
6
6
  "main": "index.js",
package/test/test.js CHANGED
@@ -179,7 +179,7 @@ describe('Test return type', () => {
179
179
  // test if it is string
180
180
  assert.equal(typeof proxy, 'string')
181
181
  })
182
- it('teset if it return object when passed returnAs obj', () => {
182
+ it('test if it return object when passed returnAs obj', () => {
183
183
  // make rotator
184
184
  let rotator = new ProxyRotator(test_proxies, { returnAs: 'object' });
185
185
  // remove proxies one by one
@@ -187,7 +187,7 @@ describe('Test return type', () => {
187
187
  // test if it is string
188
188
  assert.equal(typeof proxy, 'object')
189
189
  })
190
- it('teset if it return obj when passed as paramter', () => {
190
+ it('test if it return obj when passed as paramter', () => {
191
191
  // make rotator
192
192
  let rotator = new ProxyRotator(test_proxies);
193
193
  // remove proxies one by one