@dra2020/baseclient 1.0.148 → 1.0.149
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/dist/baseclient.js +6 -1
- package/dist/baseclient.js.map +1 -1
- package/dist/util/util.d.ts +1 -0
- package/lib/util/util.ts +7 -0
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -11797,7 +11797,7 @@ exports.IndexedArray = IndexedArray;
|
|
|
11797
11797
|
|
|
11798
11798
|
|
|
11799
11799
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
11800
|
-
exports.toSafeNumber = exports.toNumber = exports.isNumber = exports.wrapLon = exports.rad2deg = exports.deg2rad = exports.distance = exports.toRGBAIntensity = exports.toRGBA = exports.toHex = exports.hashObject = exports.hash = exports.percentString = exports.precisionRound = exports.deepAccum = exports.deepCopy = exports.shallowEqual = exports.shallowAssignImmutable = exports.shallowDelete = exports.shallowAssign = exports.shallowCopy = exports.textToHtml = exports.recentDate = exports.relativeDate = exports.prettyDate = exports.deepEqual = exports.partialEqual = exports.nthKey = exports.nthProperty = exports.countKeys = exports.isEmpty = exports.depthof = exports.sizeof = exports.guidKey = exports.createKeyedGuid = exports.createGuid = exports.Deadline = exports.MultiTimer = exports.Elapsed = exports.Now = void 0;
|
|
11800
|
+
exports.toSafeNumber = exports.toNumber = exports.isNumber = exports.wrapLon = exports.rad2deg = exports.deg2rad = exports.distance = exports.toRGBAIntensity = exports.toRGBA = exports.toHex = exports.hashObject = exports.hash = exports.percentString = exports.precisionRound = exports.deepAccum = exports.deepCopy = exports.shallowEqual = exports.shallowAssignImmutable = exports.shallowDelete = exports.shallowAssign = exports.shallowCopy = exports.textToHtml = exports.recentDate = exports.relativeDate = exports.prettyDate = exports.deepEqual = exports.partialEqual = exports.nthKey = exports.nthProperty = exports.countKeys = exports.isEmpty = exports.depthof = exports.sizeof = exports.guidKey = exports.createKeyedGuid = exports.isGuid = exports.createGuid = exports.Deadline = exports.MultiTimer = exports.Elapsed = exports.Now = void 0;
|
|
11801
11801
|
function Now() { return (new Date()).toJSON(); }
|
|
11802
11802
|
exports.Now = Now;
|
|
11803
11803
|
// polyfill
|
|
@@ -11896,6 +11896,11 @@ function createGuid() {
|
|
|
11896
11896
|
});
|
|
11897
11897
|
}
|
|
11898
11898
|
exports.createGuid = createGuid;
|
|
11899
|
+
const reGuid = /.*-.*-.*-.*-/;
|
|
11900
|
+
function isGuid(s) {
|
|
11901
|
+
return reGuid.test(s) && s.length >= 36;
|
|
11902
|
+
}
|
|
11903
|
+
exports.isGuid = isGuid;
|
|
11899
11904
|
function createKeyedGuid(key) {
|
|
11900
11905
|
return `xxxxxxxx-xxxx-${key}xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g, function (c) {
|
|
11901
11906
|
var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
|