@esposter/shared 2.24.0 → 2.25.0
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/README.md +1 -1
- package/dist/index.js +0 -10
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
Shared TypeScript utilities, types, and error classes for the Esposter platform. Works in both browser and server environments.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## Table of Contents
|
|
11
11
|
|
|
12
12
|
- 🚀 [Getting Started](#getting-started)
|
|
13
13
|
- 📖 [Documentation](#documentation)
|
package/dist/index.js
CHANGED
|
@@ -201,10 +201,6 @@ const EMPTY_OBJ = Object.freeze({});
|
|
|
201
201
|
Object.freeze([]);
|
|
202
202
|
const NOOP = () => {};
|
|
203
203
|
const extend = Object.assign;
|
|
204
|
-
const remove = (arr, el) => {
|
|
205
|
-
const i = arr.indexOf(el);
|
|
206
|
-
if (i > -1) arr.splice(i, 1);
|
|
207
|
-
};
|
|
208
204
|
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
209
205
|
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
210
206
|
const isArray = Array.isArray;
|
|
@@ -256,10 +252,6 @@ const getGlobalThis = () => {
|
|
|
256
252
|
function warn(msg, ...args) {
|
|
257
253
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
258
254
|
}
|
|
259
|
-
let activeEffectScope;
|
|
260
|
-
function getCurrentScope() {
|
|
261
|
-
return activeEffectScope;
|
|
262
|
-
}
|
|
263
255
|
let activeSub;
|
|
264
256
|
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
|
|
265
257
|
var ReactiveEffect = class {
|
|
@@ -1273,10 +1265,8 @@ function watch(source, cb, options = EMPTY_OBJ) {
|
|
|
1273
1265
|
const depth = deep === true ? Infinity : deep;
|
|
1274
1266
|
getter = () => traverse(baseGetter(), depth);
|
|
1275
1267
|
}
|
|
1276
|
-
const scope = getCurrentScope();
|
|
1277
1268
|
const watchHandle = () => {
|
|
1278
1269
|
effect.stop();
|
|
1279
|
-
if (scope && scope.active) remove(scope.effects, effect);
|
|
1280
1270
|
};
|
|
1281
1271
|
if (once && cb) {
|
|
1282
1272
|
const _cb = cb;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esposter/shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "A library that contains shared typescript code.",
|
|
5
5
|
"homepage": "https://github.com/Esposter/Esposter/blob/main/packages/shared#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -41,7 +41,13 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@azure/data-tables": "^13.3.2",
|
|
44
|
-
"@esposter/configuration": "2.
|
|
44
|
+
"@esposter/configuration": "2.25.0",
|
|
45
|
+
"@types/node": "^25.9.1",
|
|
46
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
47
|
+
"ctix": "^2.8.0",
|
|
48
|
+
"rolldown": "^1.0.2",
|
|
49
|
+
"type-fest": "^5.6.0",
|
|
50
|
+
"vitest": "^4.1.7"
|
|
45
51
|
},
|
|
46
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "9e1918dda13a287698bee79a4507635cce57fcbf"
|
|
47
53
|
}
|