@es-joy/jsoe 0.6.0 → 0.6.1

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/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES TO `@es-joy/jsoe`
2
2
 
3
+ ## 0.6.1
4
+
5
+ - refactor: avoid problems for instrumenter
6
+
3
7
  ## 0.6.0
4
8
 
5
9
  - feat: add `set`, `map`, `error`, and special error types
@@ -1 +1 @@
1
- {"version":3,"file":"arrayType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/arrayType.js"],"names":[],"mappings":";sBAUa,MAAM;;oCAQN,MAAM,gBAAgB,EAAE;+BAGxB,MAAM,CAAC,iBAAiB,GAAG;IACvC,SAAa,EAAE,OAAO,mBAAmB,EAAE,QAAQ,CAAA;CAChD,CAAC,EAAE;6BAGM,MAAM,IAAI;sCAIV,gBAAgB,EAAE;qCAKlB,IAAI;4BAGJ,MAAM,cAAc,GAAG;IACnC,sBAA0B,EAAE,qBAAqB,CAAC;IAClD,kBAAsB,EAAE,iBAAiB,CAAC;IAC1C,iBAAqB,EAAE,gBAAgB,CAAC;IACxC,iBAAqB,EAAE,gBAAgB,CAAA;CACpC;uBAGS,MAAM,QAAQ,IAAI,CAAC;2BAKrB;IAAC,WAAW,CAAC,EAAE,IAAI,CAAA;CAAC,KAClB,IAAI;+BAIJ,MAAM,gBAAgB,GAAC,SAAS;uBAIhC,GAAG;AAmBhB;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,GAAG;IAAC,MAAM,CAAC,EAAE,OAAO,GAAC,SAAS,CAAA;CAAC,CAomDvE"}
1
+ {"version":3,"file":"arrayType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/arrayType.js"],"names":[],"mappings":";sBAUa,MAAM;;oCAQN,MAAM,gBAAgB,EAAE;+BAGxB,MAAM,CAAC,iBAAiB,GAAG;IACvC,SAAa,EAAE,OAAO,mBAAmB,EAAE,QAAQ,CAAA;CAChD,CAAC,EAAE;6BAGM,MAAM,IAAI;sCAIV,gBAAgB,EAAE;qCAKlB,IAAI;4BAGJ,MAAM,cAAc,GAAG;IACnC,sBAA0B,EAAE,qBAAqB,CAAC;IAClD,kBAAsB,EAAE,iBAAiB,CAAC;IAC1C,iBAAqB,EAAE,gBAAgB,CAAC;IACxC,iBAAqB,EAAE,gBAAgB,CAAA;CACpC;uBAGS,MAAM,QAAQ,IAAI,CAAC;2BAKrB;IAAC,WAAW,CAAC,EAAE,IAAI,CAAA;CAAC,KAClB,IAAI;+BAIJ,MAAM,gBAAgB,GAAC,SAAS;uBAIhC,GAAG;AAmBhB;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,GAAG;IAAC,MAAM,CAAC,EAAE,OAAO,GAAC,SAAS,CAAA;CAAC,CAgmDvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"errorsSpecialType.d.ts","sourceRoot":"","sources":["../../src/superTypes/errorsSpecialType.js"],"names":[],"mappings":";sBAOa,MAAM;+BAaN,gBAAgB,GAAC,yBAAyB;AAyBvD;;GAEG;AACH,iCAFU,OAAO,wBAAwB,EAAE,eAAe,CAuvBxD"}
1
+ {"version":3,"file":"errorsSpecialType.d.ts","sourceRoot":"","sources":["../../src/superTypes/errorsSpecialType.js"],"names":[],"mappings":";sBAOa,MAAM;+BAaN,gBAAgB,GAAC,yBAAyB;AAyBvD;;GAEG;AACH,iCAFU,OAAO,wBAAwB,EAAE,eAAe,CA+sBxD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@es-joy/jsoe",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./src/index.js",
@@ -245,9 +245,6 @@ const encapsulateObserver = (stateObj) => {
245
245
  }
246
246
 
247
247
  if (!readonly) {
248
- // Todo: Redundant with `typeObj.setValue`? Ensure `idb-manager`
249
- // does not need both; this write-only would seem preferable
250
- // to the block in `arrayType.js` if readonly indeed not needed
251
248
  Types.setValue({
252
249
  type: newType,
253
250
  // eslint-disable-next-line object-shorthand -- TS
@@ -1389,16 +1389,15 @@ const arrayType = {
1389
1389
  * @this {HTMLDivElement}
1390
1390
  */
1391
1391
  $getArrayItems () {
1392
- return (/**
1393
- * @type {HTMLDivElement & {
1394
- * $inputsExceedingLength: InputsExceedingLength,
1395
- * $getPropertyInputs: GetPropertyInputs,
1396
- * $redrawMoveArrows: RedrawMoveArrows,
1397
- * $getMapKeySelects: GetMapKeySelects
1398
- * }}
1399
- */
1400
- (this.previousElementSibling)
1401
- );
1392
+ const prevSibling = /**
1393
+ * @type {HTMLDivElement & {
1394
+ * $inputsExceedingLength: InputsExceedingLength,
1395
+ * $getPropertyInputs: GetPropertyInputs,
1396
+ * $redrawMoveArrows: RedrawMoveArrows,
1397
+ * $getMapKeySelects: GetMapKeySelects
1398
+ * }}
1399
+ */ (this.previousElementSibling);
1400
+ return prevSibling;
1402
1401
  }
1403
1402
  },
1404
1403
  $on: {click () {
@@ -1627,9 +1626,8 @@ const arrayType = {
1627
1626
  const typeChoices = this.$getTypeChoices();
1628
1627
  typeChoices.$setType({type, baseValue: value, bringIntoFocus});
1629
1628
  const root = typeChoices.$getTypeRoot();
1630
- // Reapply this repeated setting of value if setting within the
1631
- // array is not enough for `idb-manager`! But causes problems
1632
- // with running `Error.cause` type twice and is inefficient;
1629
+ // If run for all, causes problems with running `Error.cause`
1630
+ // type twice and is inefficient;
1633
1631
  // currently put behind `setAValue` as we need to set a value
1634
1632
  // from `errorsSpecialType`
1635
1633
  if (setAValue) {