axj-ab_ 1.0.0 → 1.0.1

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +2 -2
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -381,7 +381,7 @@ declare namespace ab_ {
381
381
  * @param data
382
382
  * @param i
383
383
  */
384
- function posts(data: any, i: number): void;
384
+ function posts(data: any, i: number, from: any): void;
385
385
 
386
386
  /**
387
387
  *
package/index.js CHANGED
@@ -427,11 +427,11 @@ var ab_ = {
427
427
  }
428
428
  },
429
429
 
430
- posts(data, i) {
430
+ posts(data, i, from) {
431
431
  var last = data.length - 1
432
432
  for (i = i || 0; i < last; i += 2) {
433
433
  try {
434
- ab_.post(undefined, data[i], data[i + 1])
434
+ ab_.post(undefined, data[i], data[i + 1], from)
435
435
 
436
436
  } catch (e) {
437
437
  console.error(e)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "axj-ab_",
3
3
  "type": "commonjs",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -9,4 +9,4 @@
9
9
  },
10
10
  "author": "",
11
11
  "license": "ISC"
12
- }
12
+ }