@scrypted/server 0.2.10 → 0.2.11
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.
Potentially problematic release.
This version of @scrypted/server might be problematic. Click here for more details.
@@ -16,6 +16,7 @@ function hasMixinCycle(scrypted, id, mixins) {
|
|
16
16
|
// if the visited graphs includes the original device, that indicates
|
17
17
|
// a cyclical dependency for that device.
|
18
18
|
const visitedMixins = new Set(mixins);
|
19
|
+
mixins = mixins.slice();
|
19
20
|
while (mixins.length) {
|
20
21
|
const mixin = mixins.pop();
|
21
22
|
if (visitedMixins.has(mixin))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mixin-cycle.js","sourceRoot":"","sources":["../../src/mixin/mixin-cycle.ts"],"names":[],"mappings":";;;AAAA,2CAA4D;AAE5D,oCAAoC;AAEpC,SAAS,SAAS,CAAC,QAAyB,EAAE,EAAU;IACpD,MAAM,YAAY,GAAG,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACvD,IAAI,CAAC,YAAY;QACb,OAAO,EAAE,CAAC;IACd,OAAO,IAAA,gBAAQ,EAAC,YAAY,EAAE,iCAAyB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1E,CAAC;AAED,SAAgB,aAAa,CAAC,QAAyB,EAAE,EAAU,EAAE,MAAiB;IAClF,MAAM,GAAG,MAAM,IAAI,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAE3C,uEAAuE;IACvE,8BAA8B;IAC9B,qEAAqE;IACrE,yCAAyC;IACzC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAEtC,OAAO,MAAM,CAAC,MAAM,EAAE;QAClB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;QAC3B,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC;YACxB,SAAS;QACb,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC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AAG,CAAC,EAAE,CAAC,CAAC;AACjC,CAAC;AApBD,sCAoBC"}
|
package/package.json
CHANGED
package/src/mixin/mixin-cycle.ts
CHANGED
@@ -18,6 +18,7 @@ export function hasMixinCycle(scrypted: ScryptedRuntime, id: string, mixins?: st
|
|
18
18
|
// a cyclical dependency for that device.
|
19
19
|
const visitedMixins = new Set(mixins);
|
20
20
|
|
21
|
+
mixins = mixins.slice();
|
21
22
|
while (mixins.length) {
|
22
23
|
const mixin = mixins.pop();
|
23
24
|
if (visitedMixins.has(mixin))
|