@omnia/fx 8.0.32-vnext → 8.0.33-vnext

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.
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const _equalsObject = {};
4
- Object.defineProperty(String.prototype, "equals", {
5
- value: function () {
6
- return _equalsObject;
7
- },
8
- writable: false,
9
- configurable: false,
10
- enumerable: false
11
- });
4
+ // only add extension methods when running in browser, not in node.js
5
+ if (globalThis.omnia) {
6
+ Object.defineProperty(String.prototype, "equals", {
7
+ value: function () {
8
+ return _equalsObject;
9
+ },
10
+ writable: false,
11
+ configurable: false,
12
+ enumerable: false
13
+ });
14
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.32-vnext",
4
+ "version": "8.0.33-vnext",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Precio Fishbone",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.32-vnext",
23
+ "@omnia/fx-models": "8.0.33-vnext",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",