stanza 12.22.0 → 12.22.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.
package/Constants.js CHANGED
@@ -4,7 +4,7 @@ exports.JINGLE_INFO_RECEIVED_5 = exports.JINGLE_INFO_CHECKSUM_5 = exports.JINGLE
4
4
  exports.sendersToDirection = sendersToDirection;
5
5
  exports.directionToSenders = directionToSenders;
6
6
  const Namespaces_1 = require("./Namespaces");
7
- exports.VERSION = '12.22.0';
7
+ exports.VERSION = '12.22.1';
8
8
  // ====================================================================
9
9
  // Frequently Used Values
10
10
  // ====================================================================
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stanza",
3
3
  "description": "Modern XMPP in the browser, with a JSON API",
4
- "version": "12.22.0",
4
+ "version": "12.22.1",
5
5
  "author": "Lance Stout <lancestout@gmail.com>",
6
6
  "bugs": "https://github.com/legastero/stanza/issues",
7
7
  "contributors": [
@@ -38,7 +38,7 @@ var Stream = require('events').EventEmitter;
38
38
  /*</replacement>*/
39
39
  /*<replacement>*/
40
40
  var Buffer = require('../../buffer').Buffer;
41
- var OurUint8Array = global.Uint8Array || function () { };
41
+ var OurUint8Array = typeof Uint8Array !== 'undefined' ? Uint8Array : function () { };
42
42
  function _uint8ArrayToBuffer(chunk) {
43
43
  return Buffer.from(chunk);
44
44
  }
@@ -59,7 +59,7 @@ var Stream = require('events').EventEmitter;
59
59
  /*</replacement>*/
60
60
  /*<replacement>*/
61
61
  var Buffer = require('../../buffer').Buffer;
62
- var OurUint8Array = global.Uint8Array || function () { };
62
+ var OurUint8Array = typeof Uint8Array !== 'undefined' ? Uint8Array : function () { };
63
63
  function _uint8ArrayToBuffer(chunk) {
64
64
  return Buffer.from(chunk);
65
65
  }