@omnia/fx-models 8.0.61-vnext → 8.0.63-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,3 +1,4 @@
1
+ import "./Equals";
1
2
  import { IEquals } from "./Equals";
2
3
  export interface GuidValue extends Partial<IEquals<{
3
4
  guid(value: GuidValue): boolean;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Guid = void 0;
2
4
  //export interface GuidValue {
3
5
  // :string;
4
6
  //}
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Guid = void 0;
7
+ require("./Equals"); // ensure execute code in equals first
7
8
  // export interface GuidValue {
8
9
  // toString: () => string;
9
10
  // }
@@ -58,7 +59,7 @@ class Guid {
58
59
  Guid._empty = new Guid("00000000-0000-0000-0000-000000000000");
59
60
  exports.Guid = Guid;
60
61
  // only add extension methods when running in browser, not in node.js
61
- if (globalThis.omnia && String.prototype["equals"]) {
62
+ if (globalThis.omnia) {
62
63
  Object.defineProperty(String.prototype["equals"], "guid", {
63
64
  value: function () {
64
65
  return function (value) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.61-vnext",
4
+ "version": "8.0.63-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"