hyperscript-rxjs 1.3.16 → 1.3.17

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,7 +1,49 @@
1
- /******/ (() => { // webpackBootstrap
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("rxjs"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["rxjs"], factory);
6
+ else {
7
+ var a = typeof exports === 'object' ? factory(require("rxjs")) : factory(root["rxjs"]);
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(global, (__WEBPACK_EXTERNAL_MODULE__961__) => {
11
+ return /******/ (() => { // webpackBootstrap
2
12
  /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 961:
16
+ /***/ ((module) => {
17
+
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__961__;
19
+
20
+ /***/ })
21
+
22
+ /******/ });
23
+ /************************************************************************/
24
+ /******/ // The module cache
25
+ /******/ var __webpack_module_cache__ = {};
26
+ /******/
27
+ /******/ // The require function
28
+ /******/ function __webpack_require__(moduleId) {
29
+ /******/ // Check if module is in cache
30
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
31
+ /******/ if (cachedModule !== undefined) {
32
+ /******/ return cachedModule.exports;
33
+ /******/ }
34
+ /******/ // Create a new module (and put it into the cache)
35
+ /******/ var module = __webpack_module_cache__[moduleId] = {
36
+ /******/ // no module.id needed
37
+ /******/ // no module.loaded needed
38
+ /******/ exports: {}
39
+ /******/ };
40
+ /******/
41
+ /******/ // Execute the module function
42
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
43
+ /******/
44
+ /******/ // Return the exports of the module
45
+ /******/ return module.exports;
46
+ /******/ }
5
47
  /******/
6
48
  /************************************************************************/
7
49
  /******/ /* webpack/runtime/define property getters */
@@ -993,8 +1035,8 @@ const types = ["undefined",
993
1035
 
994
1036
 
995
1037
 
996
- ;// external "rxjs"
997
- const external_rxjs_namespaceObject = require("rxjs");
1038
+ // EXTERNAL MODULE: external "rxjs"
1039
+ var external_rxjs_ = __webpack_require__(961);
998
1040
  ;// ./src/object/pluckProperty.js
999
1041
  /**
1000
1042
  * 获取对象的嵌套属性
@@ -1388,7 +1430,7 @@ class Deep {
1388
1430
  */
1389
1431
  combineLatest() {
1390
1432
  let values = this.getValues();
1391
- return (0,external_rxjs_namespaceObject.combineLatest)(values).pipe((0,external_rxjs_namespaceObject.map)(values => this.replaceValue(values)));
1433
+ return (0,external_rxjs_.combineLatest)(values).pipe((0,external_rxjs_.map)(values => this.replaceValue(values)));
1392
1434
  }
1393
1435
 
1394
1436
  /**
@@ -1398,7 +1440,7 @@ class Deep {
1398
1440
  * @returns {Observable<[(string|number)[], U]>}
1399
1441
  */
1400
1442
  merge() {
1401
- return (0,external_rxjs_namespaceObject.from)(this.entries).pipe((0,external_rxjs_namespaceObject.mergeMap)(([keyPath, value$]) => value$.pipe((0,external_rxjs_namespaceObject.map)(
1443
+ return (0,external_rxjs_.from)(this.entries).pipe((0,external_rxjs_.mergeMap)(([keyPath, value$]) => value$.pipe((0,external_rxjs_.map)(
1402
1444
  /**
1403
1445
  * @returns {[(string|number)[], U]}
1404
1446
  */
@@ -1425,7 +1467,7 @@ class Deep {
1425
1467
  * @returns {Deep<BehaviorSubject<T>>}
1426
1468
  */
1427
1469
  static fromBehaviorSubject(obj) {
1428
- return Deep.fromObject(obj, v => (0,external_rxjs_namespaceObject.isObservable)(v) || v instanceof external_rxjs_namespaceObject.Subscription).filter(([k, v]) => v instanceof external_rxjs_namespaceObject.BehaviorSubject);
1470
+ return Deep.fromObject(obj, v => (0,external_rxjs_.isObservable)(v) || v instanceof external_rxjs_.Subscription).filter(([k, v]) => v instanceof external_rxjs_.BehaviorSubject);
1429
1471
  }
1430
1472
 
1431
1473
  /**
@@ -1434,7 +1476,7 @@ class Deep {
1434
1476
  * @returns
1435
1477
  */
1436
1478
  static fromObservable(obj) {
1437
- return Deep.fromObject(obj, v => (0,external_rxjs_namespaceObject.isObservable)(v) || v instanceof external_rxjs_namespaceObject.Subscription).filter(([k, v]) => (0,external_rxjs_namespaceObject.isObservable)(v));
1479
+ return Deep.fromObject(obj, v => (0,external_rxjs_.isObservable)(v) || v instanceof external_rxjs_.Subscription).filter(([k, v]) => (0,external_rxjs_.isObservable)(v));
1438
1480
  }
1439
1481
  }
1440
1482
  ;// ./src/deep/0.js
@@ -1452,7 +1494,7 @@ class Deep {
1452
1494
  *
1453
1495
  */
1454
1496
  function isRxType(obj) {
1455
- return typeof obj === 'object' && obj && ((0,external_rxjs_namespaceObject.isObservable)(obj) || obj instanceof external_rxjs_namespaceObject.Subscription);
1497
+ return typeof obj === 'object' && obj && ((0,external_rxjs_.isObservable)(obj) || obj instanceof external_rxjs_.Subscription);
1456
1498
  }
1457
1499
  ;// ./src/deep-rxjs/ObservableArray.js
1458
1500
 
@@ -1480,25 +1522,25 @@ class ObservableArray extends Array {
1480
1522
  * 变化通知的 Subject。
1481
1523
  * @type {Subject<any[]>}
1482
1524
  */
1483
- this.action$ = new external_rxjs_namespaceObject.Subject();
1525
+ this.action$ = new external_rxjs_.Subject();
1484
1526
 
1485
1527
  /**
1486
1528
  * 插入元素事件流,发出 [item, index]。
1487
1529
  * @type {import('rxjs').Observable<[T, number]>}
1488
1530
  */
1489
- this.insertBefore$ = this.action$.pipe((0,external_rxjs_namespaceObject.filter)(([action]) => action === 'insertBefore'), (0,external_rxjs_namespaceObject.map)(([_, item, index]) => [item, index]));
1531
+ this.insertBefore$ = this.action$.pipe((0,external_rxjs_.filter)(([action]) => action === 'insertBefore'), (0,external_rxjs_.map)(([_, item, index]) => [item, index]));
1490
1532
 
1491
1533
  /**
1492
1534
  * 删除元素事件流,发出 index。
1493
1535
  * @type {import('rxjs').Observable<number>}
1494
1536
  */
1495
- this.removeChild$ = this.action$.pipe((0,external_rxjs_namespaceObject.filter)(([action]) => action === 'removeChild'), (0,external_rxjs_namespaceObject.map)(([_, index]) => index));
1537
+ this.removeChild$ = this.action$.pipe((0,external_rxjs_.filter)(([action]) => action === 'removeChild'), (0,external_rxjs_.map)(([_, index]) => index));
1496
1538
 
1497
1539
  /**
1498
1540
  * 替换元素事件流,发出 [item, index]。
1499
1541
  * @type {import('rxjs').Observable<[T, number]>}
1500
1542
  */
1501
- this.replaceChild$ = this.action$.pipe((0,external_rxjs_namespaceObject.filter)(([action]) => action === 'replaceChild'), (0,external_rxjs_namespaceObject.map)(([_, item, index]) => [item, index]));
1543
+ this.replaceChild$ = this.action$.pipe((0,external_rxjs_.filter)(([action]) => action === 'replaceChild'), (0,external_rxjs_.map)(([_, item, index]) => [item, index]));
1502
1544
  }
1503
1545
 
1504
1546
  /**
@@ -1643,7 +1685,7 @@ const attachSubscriptionToNode = (elem, subscription) => {
1643
1685
  if (!(elem instanceof Node)) {
1644
1686
  throw new Error('Valid DOM node required');
1645
1687
  }
1646
- if (!(subscription instanceof external_rxjs_namespaceObject.Subscription)) {
1688
+ if (!(subscription instanceof external_rxjs_.Subscription)) {
1647
1689
  throw new Error('Valid RxJS subscription required');
1648
1690
  }
1649
1691
 
@@ -1686,7 +1728,7 @@ function pipeEvent(elem) {
1686
1728
  if (typeof subscriber !== 'function') {
1687
1729
  throw new Error('参数 "subscriber" 必须是一个函数。');
1688
1730
  }
1689
- let event$ = (0,external_rxjs_namespaceObject.fromEvent)(elem, event); // 创建事件流 Observable
1731
+ let event$ = (0,external_rxjs_.fromEvent)(elem, event); // 创建事件流 Observable
1690
1732
 
1691
1733
  try {
1692
1734
  let subscription = subscriber(event$); // 订阅事件流并处理
@@ -1739,7 +1781,7 @@ function subscribeEvent(elem) {
1739
1781
  }
1740
1782
 
1741
1783
  // 创建事件流 Observable
1742
- let event$ = (0,external_rxjs_namespaceObject.fromEvent)(elem, event);
1784
+ let event$ = (0,external_rxjs_.fromEvent)(elem, event);
1743
1785
 
1744
1786
  // 订阅事件流
1745
1787
  let subscription;
@@ -1868,7 +1910,7 @@ function splitObjectByObservable(obj) {
1868
1910
  let value = obj[key];
1869
1911
 
1870
1912
  // 根据值的类型分类
1871
- if ((0,external_rxjs_namespaceObject.isObservable)(value)) {
1913
+ if ((0,external_rxjs_.isObservable)(value)) {
1872
1914
  observables[key] = value; // 如果是 Observable,存入 observables
1873
1915
  } else {
1874
1916
  scalars[key] = value; // 否则存入 scalars
@@ -2013,12 +2055,12 @@ function subscribeProp(element, key, value$) {
2013
2055
  if (typeof key !== 'string') {
2014
2056
  throw new Error('参数 "key" 必须是一个字符串。');
2015
2057
  }
2016
- if (!(0,external_rxjs_namespaceObject.isObservable)(value$)) {
2058
+ if (!(0,external_rxjs_.isObservable)(value$)) {
2017
2059
  throw new Error('参数 "value$" 必须是一个有效的 Observable。');
2018
2060
  }
2019
2061
 
2020
2062
  // 创建订阅,将 BehaviorSubject 的值动态设置为元素的属性
2021
- const subscription = value$.pipe((0,external_rxjs_namespaceObject.startWith)(0)).subscribe({
2063
+ const subscription = value$.pipe((0,external_rxjs_.startWith)(0)).subscribe({
2022
2064
  next: value => {
2023
2065
  setProp(element, key, value);
2024
2066
  },
@@ -2140,7 +2182,7 @@ function hyperscript(elemName, ...args) {
2140
2182
  return subscribeEvent(element)(event, observer);
2141
2183
  },
2142
2184
  unsubscribe() {
2143
- if ('subscription' in element && element.subscription instanceof external_rxjs_namespaceObject.Subscription) {
2185
+ if ('subscription' in element && element.subscription instanceof external_rxjs_.Subscription) {
2144
2186
  element.subscription.unsubscribe(); // 取消订阅
2145
2187
  delete element.subscription; // 删除属性
2146
2188
  }
@@ -3015,7 +3057,7 @@ function bindTabIndex(tabRoot, tabIndex$) {
3015
3057
  });
3016
3058
 
3017
3059
  // 监听导航按钮的点击事件,更新 tabIndex
3018
- navs.pipeEvent('click', click$ => click$.pipe((0,external_rxjs_namespaceObject.map)(e => Array.from(navs.childNodes).map(e => (/** @type {HTMLElement} */e.firstChild)).indexOf(/** @type {HTMLElement} */e.target)), (0,external_rxjs_namespaceObject.filter)(i => i > -1) // 过滤无效索引
3060
+ navs.pipeEvent('click', click$ => click$.pipe((0,external_rxjs_.map)(e => Array.from(navs.childNodes).map(e => (/** @type {HTMLElement} */e.firstChild)).indexOf(/** @type {HTMLElement} */e.target)), (0,external_rxjs_.filter)(i => i > -1) // 过滤无效索引
3019
3061
  ).subscribe(tabIndex$));
3020
3062
  }
3021
3063
  ;// ./src/hyperscript-rxjs/tabControls/tabControl.js
@@ -3089,7 +3131,7 @@ function checkbox_checkbox(props) {
3089
3131
  });
3090
3132
 
3091
3133
  // 如果传入了 checked 属性
3092
- if (props.checked && props.checked instanceof external_rxjs_namespaceObject.BehaviorSubject) {
3134
+ if (props.checked && props.checked instanceof external_rxjs_.BehaviorSubject) {
3093
3135
  // 监听复选框的 input 事件,并将选中状态推送到 Observable/Subject
3094
3136
  let subscriber =
3095
3137
  /**
@@ -3097,7 +3139,7 @@ function checkbox_checkbox(props) {
3097
3139
  * @param {Observable<Event>} input$
3098
3140
  * @returns
3099
3141
  */
3100
- input$ => input$.pipe((0,external_rxjs_namespaceObject.map)(e => /** @type {HTMLInputElement} */e.target.checked) // 提取复选框的选中状态
3142
+ input$ => input$.pipe((0,external_rxjs_.map)(e => /** @type {HTMLInputElement} */e.target.checked) // 提取复选框的选中状态
3101
3143
  ).subscribe(props.checked); // 推送选中状态到 Observable/Subject
3102
3144
 
3103
3145
  elem.pipeEvent('input', subscriber); // 绑定事件处理器
@@ -3149,7 +3191,7 @@ function collapse(hidden$, ...elements) {
3149
3191
  function choice(chosen$, possibilities) {
3150
3192
  // 遍历 possibilities,将每个可能性绑定到 collapse
3151
3193
  const elems = Object.entries(possibilities).map(([key, possibility]) => {
3152
- const hidden$ = chosen$.pipe((0,external_rxjs_namespaceObject.map)(selectedKey => selectedKey !== key) // 如果当前选中的键不是当前可能性,则隐藏
3194
+ const hidden$ = chosen$.pipe((0,external_rxjs_.map)(selectedKey => selectedKey !== key) // 如果当前选中的键不是当前可能性,则隐藏
3153
3195
  );
3154
3196
  return collapse(hidden$, possibility); // 绑定 hidden 属性
3155
3197
  }).reduce((acc, cur) => [...acc, ...cur], []); // 扁平化数组
@@ -3176,7 +3218,7 @@ function choice(chosen$, possibilities) {
3176
3218
  */
3177
3219
  function flip(yinHidden$, yin, yang) {
3178
3220
  // 创建一个 Observable,用于控制 yangElement 的隐藏状态
3179
- const yangHidden$ = yinHidden$.pipe((0,external_rxjs_namespaceObject.map)(isHidden => !isHidden));
3221
+ const yangHidden$ = yinHidden$.pipe((0,external_rxjs_.map)(isHidden => !isHidden));
3180
3222
 
3181
3223
  // 阴阳交叉
3182
3224
  return [...collapse(yangHidden$, yin), ...collapse(yinHidden$, yang)];
@@ -3281,8 +3323,8 @@ function numberbox(props) {
3281
3323
  ...rest,
3282
3324
  type: 'text'
3283
3325
  });
3284
- if (number && number instanceof external_rxjs_namespaceObject.BehaviorSubject) {
3285
- let value = number.pipe((0,external_rxjs_namespaceObject.map)(n => String(n)));
3326
+ if (number && number instanceof external_rxjs_.BehaviorSubject) {
3327
+ let value = number.pipe((0,external_rxjs_.map)(n => String(n)));
3286
3328
  subscribeProp(elem, 'value', value);
3287
3329
  let subscriber =
3288
3330
  /**
@@ -3290,7 +3332,7 @@ function numberbox(props) {
3290
3332
  * @param {Observable<Event>} blur$
3291
3333
  * @returns
3292
3334
  */
3293
- blur$ => blur$.pipe((0,external_rxjs_namespaceObject.map)(e => Number(/** @type {HTMLInputElement} */
3335
+ blur$ => blur$.pipe((0,external_rxjs_.map)(e => Number(/** @type {HTMLInputElement} */
3294
3336
  e.target.value))).subscribe(newValue => {
3295
3337
  if (Number.isNaN(newValue)) {
3296
3338
  elem.select();
@@ -3341,14 +3383,14 @@ function radio_radio(props) {
3341
3383
  ...props,
3342
3384
  type: 'radio'
3343
3385
  });
3344
- if (props.checked && props.checked instanceof external_rxjs_namespaceObject.BehaviorSubject) {
3386
+ if (props.checked && props.checked instanceof external_rxjs_.BehaviorSubject) {
3345
3387
  const subscriber =
3346
3388
  /**
3347
3389
  *
3348
3390
  * @param {Observable<Event>} input$
3349
3391
  * @returns
3350
3392
  */
3351
- input$ => input$.pipe((0,external_rxjs_namespaceObject.map)(e => /** @type {HTMLInputElement} */
3393
+ input$ => input$.pipe((0,external_rxjs_.map)(e => /** @type {HTMLInputElement} */
3352
3394
  e.target.checked)).subscribe(props.checked);
3353
3395
  elem.pipeEvent('input', subscriber);
3354
3396
 
@@ -3399,10 +3441,10 @@ function select_select(props, ...options) {
3399
3441
  } = props;
3400
3442
 
3401
3443
  // 确保至少有一个是 BehaviorSubject
3402
- if (elem.options.length > 0 && !(selectedIndex instanceof external_rxjs_namespaceObject.BehaviorSubject) && !(value instanceof external_rxjs_namespaceObject.BehaviorSubject)) {
3444
+ if (elem.options.length > 0 && !(selectedIndex instanceof external_rxjs_.BehaviorSubject) && !(value instanceof external_rxjs_.BehaviorSubject)) {
3403
3445
  throw new Error('`select` requires at least one of `selectedIndex` or `value` to be a BehaviorSubject.');
3404
3446
  }
3405
- if (selectedIndex && selectedIndex instanceof external_rxjs_namespaceObject.BehaviorSubject) {
3447
+ if (selectedIndex && selectedIndex instanceof external_rxjs_.BehaviorSubject) {
3406
3448
  selectedIndex.subscribe(i => {
3407
3449
  /** @type {HTMLOptionElement} */
3408
3450
  elem[i].selected = true;
@@ -3411,14 +3453,14 @@ function select_select(props, ...options) {
3411
3453
  /**
3412
3454
  * @param {Observable<Event>} input$
3413
3455
  */
3414
- input$ => input$.pipe((0,external_rxjs_namespaceObject.map)(e => /** @type {HTMLSelectElement} */
3456
+ input$ => input$.pipe((0,external_rxjs_.map)(e => /** @type {HTMLSelectElement} */
3415
3457
  e.target.selectedIndex)).subscribe(selectedIndex);
3416
3458
  elem.pipeEvent('input', subscriber);
3417
3459
  // let event$ = fromEvent(elem, 'input');
3418
3460
  // let subscription = subscriber(event$);
3419
3461
  // attachSubscriptionToNode(elem, subscription);
3420
3462
  }
3421
- if (value && value instanceof external_rxjs_namespaceObject.BehaviorSubject) {
3463
+ if (value && value instanceof external_rxjs_.BehaviorSubject) {
3422
3464
  value.subscribe(value => {
3423
3465
  Array.from(elem.getElementsByTagName('option')).filter(opt => opt.value === value).forEach(opt => {
3424
3466
  opt.selected = true;
@@ -3429,7 +3471,7 @@ function select_select(props, ...options) {
3429
3471
  * @param {Observable<Event>} input$
3430
3472
  */
3431
3473
 
3432
- input$ => input$.pipe((0,external_rxjs_namespaceObject.map)(e => /** @type {HTMLSelectElement} */
3474
+ input$ => input$.pipe((0,external_rxjs_.map)(e => /** @type {HTMLSelectElement} */
3433
3475
  e.target.value)).subscribe(value);
3434
3476
  elem.pipeEvent('input', subscriber);
3435
3477
  // let event$ = fromEvent(elem, 'input');
@@ -3462,7 +3504,7 @@ function textarea_textarea(props) {
3462
3504
  const {
3463
3505
  value
3464
3506
  } = props;
3465
- if (!(value instanceof external_rxjs_namespaceObject.BehaviorSubject)) {
3507
+ if (!(value instanceof external_rxjs_.BehaviorSubject)) {
3466
3508
  throw new Error('`value` must be an instance of BehaviorSubject.');
3467
3509
  }
3468
3510
 
@@ -3476,7 +3518,7 @@ function textarea_textarea(props) {
3476
3518
  * @param {Observable<Event>} input$
3477
3519
  * @returns
3478
3520
  */
3479
- input$ => input$.pipe((0,external_rxjs_namespaceObject.map)(e => /** @type {HTMLTextAreaElement} */e.target.value)).subscribe(value);
3521
+ input$ => input$.pipe((0,external_rxjs_.map)(e => /** @type {HTMLTextAreaElement} */e.target.value)).subscribe(value);
3480
3522
  elem.pipeEvent('input', subscriber);
3481
3523
  return elem;
3482
3524
  }
@@ -3504,7 +3546,7 @@ function textbox(props) {
3504
3546
  const {
3505
3547
  value
3506
3548
  } = props;
3507
- if (!(value instanceof external_rxjs_namespaceObject.BehaviorSubject)) {
3549
+ if (!(value instanceof external_rxjs_.BehaviorSubject)) {
3508
3550
  throw new Error('`value` must be an instance of BehaviorSubject.');
3509
3551
  }
3510
3552
 
@@ -3520,7 +3562,7 @@ function textbox(props) {
3520
3562
  * @param {Observable<Event>} input$
3521
3563
  * @returns
3522
3564
  */
3523
- input$ => input$.pipe((0,external_rxjs_namespaceObject.map)(e => /** @type {HTMLInputElement} */e.target.value)).subscribe(value);
3565
+ input$ => input$.pipe((0,external_rxjs_.map)(e => /** @type {HTMLInputElement} */e.target.value)).subscribe(value);
3524
3566
  elem.pipeEvent('input', subscriber);
3525
3567
  return elem;
3526
3568
  }
@@ -3546,11 +3588,11 @@ function textbox(props) {
3546
3588
  */
3547
3589
  function textNode(text) {
3548
3590
  // 如果传入的是 Observable
3549
- if ((0,external_rxjs_namespaceObject.isObservable)(text)) {
3591
+ if ((0,external_rxjs_.isObservable)(text)) {
3550
3592
  const node = document.createTextNode("");
3551
3593
 
3552
3594
  // 创建订阅并更新文本节点
3553
- const subscription = text.pipe((0,external_rxjs_namespaceObject.map)(d => String(d))).subscribe({
3595
+ const subscription = text.pipe((0,external_rxjs_.map)(d => String(d))).subscribe({
3554
3596
  next(t) {
3555
3597
  node.nodeValue = t;
3556
3598
  },
@@ -3659,7 +3701,7 @@ const isEmptyObject = obj => {
3659
3701
  */
3660
3702
  function nestedCombineLatest(model) {
3661
3703
  let deep = Deep.fromObservable(model);
3662
- return deep.combineLatest().pipe((0,external_rxjs_namespaceObject.map)(deep => deep.toObject()));
3704
+ return deep.combineLatest().pipe((0,external_rxjs_.map)(deep => deep.toObject()));
3663
3705
  }
3664
3706
  ;// ./src/object/nestedMerge.js
3665
3707
 
@@ -3707,7 +3749,7 @@ function pickBehaviorSubject(model) {
3707
3749
  * @throws {Error} 当遇到不符合要求的数据结构时抛出错误
3708
3750
  */
3709
3751
  function loop(value, key, parent) {
3710
- if ((0,external_rxjs_namespaceObject.isObservable)(value) && value instanceof external_rxjs_namespaceObject.BehaviorSubject) {
3752
+ if ((0,external_rxjs_.isObservable)(value) && value instanceof external_rxjs_.BehaviorSubject) {
3711
3753
  return [[key, value.value]]; //保存葉節點
3712
3754
  } else if (value === null || typeof value !== 'object' || isRxType(value)) {
3713
3755
  return [];
@@ -3775,7 +3817,7 @@ function restore(model, src) {
3775
3817
  * @param {any} src - Corresponding source value
3776
3818
  */
3777
3819
  function restore_loop(o, src) {
3778
- if (o instanceof external_rxjs_namespaceObject.BehaviorSubject) {
3820
+ if (o instanceof external_rxjs_.BehaviorSubject) {
3779
3821
  // Input value
3780
3822
  o.next(src);
3781
3823
  } else if (o === null || typeof o !== 'object' || isRxType(o)) {
@@ -4109,6 +4151,7 @@ const queryStringify_escape = str => str.replace(/[\x00-\x20#%&+=\x7F]/g, c => m
4109
4151
 
4110
4152
 
4111
4153
 
4112
- module.exports = __webpack_exports__;
4154
+ /******/ return __webpack_exports__;
4113
4155
  /******/ })()
4114
- ;
4156
+ ;
4157
+ });
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "name": "hyperscript-rxjs",
31
31
  "description": "A js UI library that uses rxjs to handle dom directly.",
32
32
  "author": "cuishengli<34696643@qq.com>",
33
- "version": "1.3.16",
33
+ "version": "1.3.17",
34
34
  "keywords": [
35
35
  "ui",
36
36
  "rxjs",
@@ -41,7 +41,7 @@
41
41
  "type": "git",
42
42
  "url": "git+https://github.com/xp44mm/hyperscript-rxjs.git"
43
43
  },
44
- "main": "dist/hyperscript-rxjs.cjs",
44
+ "main": "dist/hyperscript-rxjs.js",
45
45
  "types": "dist/hyperscript-rxjs.d.ts",
46
46
  "type": "module",
47
47
  "sideEffects": false,