@omnia/velcron 8.0.104-vnext → 8.0.106-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,5 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //have issue with guidvalue can't auto cast to string if have more extension method here.
4
+ // declare global {
5
+ // interface String {
6
+ // equals?: {
7
+ // component<TElement = typeof omfx>(cb: (elements: TElement) => any): boolean;
8
+ // }
9
+ // }
10
+ // }
3
11
  const _equalsObject = {};
4
12
  // only add extension methods when running in browser, not in node.js
5
13
  if (globalThis.omnia) {
@@ -11,4 +19,19 @@ if (globalThis.omnia) {
11
19
  configurable: false,
12
20
  enumerable: false
13
21
  });
22
+ // Object.defineProperty(String.prototype["equals"], "element", {
23
+ // value: function () {
24
+ // return function (cb: (elements) => any) {
25
+ // const elementName = cb(new Proxy({}, {
26
+ // get(target, key: string) {
27
+ // return key;
28
+ // }
29
+ // }) as any);
30
+ // return this.toString().replace(/-/g, "").toLowerCase().indexof(elementName.toLowerCase()) > -1;
31
+ // };
32
+ // },
33
+ // writable: false,
34
+ // configurable: false,
35
+ // enumerable: false
36
+ // });
14
37
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.104-vnext",
4
+ "version": "8.0.106-vnext",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"