Comparing version 0.2.19 to 0.2.20
@@ -314,2 +314,3 @@ var $1662971556 = require('brisky-struct') | ||
const $3357289264_isNode = typeof window === 'undefined' | ||
@@ -393,6 +394,13 @@ | ||
const $3357289264_removePaths = (hub, struct, list, stamp) => { | ||
const $3357289264_ownListeners = struct => struct !== $4043401927 && (struct.emitters || ($3357289264_ownListeners(struct.inherits))) | ||
const $3357289264_removePaths = (struct, list, stamp) => { | ||
if (struct.val) { | ||
if (list[$1662971556.puid(struct)]) { | ||
struct.set(null, stamp) | ||
if ($3357289264_ownListeners(struct)) { | ||
struct.val = void 0 | ||
struct.stamp = 0 | ||
} else { | ||
struct.set(null, stamp) | ||
} | ||
} | ||
@@ -404,3 +412,3 @@ } else { | ||
while (i--) { | ||
$3357289264_removePaths(hub, struct.get(keys[i]), list, stamp) | ||
$3357289264_removePaths(struct.get(keys[i]), list, stamp) | ||
} | ||
@@ -425,12 +433,13 @@ } | ||
const stamp = $826337949.create() | ||
if (info.remove) { | ||
hub.receiveOnly = true | ||
$3357289264_removePaths(hub, hub, info.remove, stamp) | ||
hub.receiveOnly = null | ||
} | ||
if (!hub.receiveOnly) { | ||
hub.receiveOnly = true | ||
if (info.remove) { | ||
$3357289264_removePaths(hub, info.remove, stamp) | ||
} | ||
hub.set(data, stamp) | ||
hub.receiveOnly = null | ||
} else { | ||
if (info.remove) { | ||
$3357289264_removePaths(hub, hub, info.remove, stamp) | ||
} | ||
hub.set(data, stamp) | ||
@@ -437,0 +446,0 @@ } |
@@ -338,2 +338,3 @@ var $1662971556 = require('brisky-struct') | ||
const $3357289264_isNode = typeof window === 'undefined' | ||
@@ -417,6 +418,13 @@ | ||
const $3357289264_removePaths = (hub, struct, list, stamp) => { | ||
const $3357289264_ownListeners = struct => struct !== $4043401927 && (struct.emitters || ($3357289264_ownListeners(struct.inherits))) | ||
const $3357289264_removePaths = (struct, list, stamp) => { | ||
if (struct.val) { | ||
if (list[$1662971556.puid(struct)]) { | ||
struct.set(null, stamp) | ||
if ($3357289264_ownListeners(struct)) { | ||
struct.val = void 0 | ||
struct.stamp = 0 | ||
} else { | ||
struct.set(null, stamp) | ||
} | ||
} | ||
@@ -428,3 +436,3 @@ } else { | ||
while (i--) { | ||
$3357289264_removePaths(hub, struct.get(keys[i]), list, stamp) | ||
$3357289264_removePaths(struct.get(keys[i]), list, stamp) | ||
} | ||
@@ -449,12 +457,13 @@ } | ||
const stamp = $826337949.create() | ||
if (info.remove) { | ||
hub.receiveOnly = true | ||
$3357289264_removePaths(hub, hub, info.remove, stamp) | ||
hub.receiveOnly = null | ||
} | ||
if (!hub.receiveOnly) { | ||
hub.receiveOnly = true | ||
if (info.remove) { | ||
$3357289264_removePaths(hub, info.remove, stamp) | ||
} | ||
hub.set(data, stamp) | ||
hub.receiveOnly = null | ||
} else { | ||
if (info.remove) { | ||
$3357289264_removePaths(hub, hub, info.remove, stamp) | ||
} | ||
hub.set(data, stamp) | ||
@@ -461,0 +470,0 @@ } |
{ | ||
"name": "hub.js", | ||
"description": "Seamless realtime communcation", | ||
"version": "0.2.19", | ||
"version": "0.2.20", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "browser": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
317470
14
4190
4