@es-joy/jsoe 0.0.1 → 0.0.2

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/.eslintignore CHANGED
@@ -4,4 +4,5 @@ instrumented
4
4
  ignore
5
5
  src/deepEqual.js
6
6
  src/main-pages.js
7
+ vendor
7
8
  !.*.js
package/README.md CHANGED
@@ -4,6 +4,9 @@ JavaScript Object Editor.
4
4
 
5
5
  Editing of arbitrary JavaScript objects.
6
6
 
7
+ See a [demo](https://brettz9.github.io/idb-manager/index-pages.html) of an
8
+ app using this tool.
9
+
7
10
  ## Formats
8
11
 
9
12
  Formats are a collection of allowed types.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@es-joy/jsoe",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js"
@@ -92,7 +92,9 @@
92
92
  "instrument-remove": "run-p -c instrument-remove-cache instrument-remove-instrumented",
93
93
  "copy-pages": "cp node_modules/sceditor/minified/themes/default.min.css vendor/sceditor/minified/themes/default.min.css && cp node_modules/sceditor/minified/sceditor.min.js vendor/sceditor/minified/sceditor.min.js && cp node_modules/sceditor/minified/formats/bbcode.js vendor/sceditor/minified/formats/bbcode.js && cp node_modules/sceditor/minified/formats/xhtml.js vendor/sceditor/minified/formats/xhtml.js",
94
94
  "copy-index": "cp src/index-instrumented.html instrumented/index.html",
95
- "copy": "run-p copy-pages copy-index",
95
+ "copy-jamilih": "cp node_modules/jamilih/dist/jml-es.js vendor/jamilih/dist/jml-es.js",
96
+ "copy-typeson-registry": "cp node_modules/typeson-registry/dist/index.js vendor/typeson-registry/dist/index.js",
97
+ "copy": "run-p copy-jamilih copy-typeson-registry",
96
98
  "instrument": "run-s -c instrument-remove instrument-add copy-index",
97
99
  "cypress:log": "ELECTRON_ENABLE_LOGGING=1 cypress run; nyc report",
98
100
  "cypress": "cypress run; nyc report",
@@ -2,7 +2,7 @@ import Formats from '../formats.js';
2
2
  import Types from '../types.js';
3
3
  import {
4
4
  Typeson, unescapeKeyPathComponent, structuredCloningThrowing
5
- } from '../../node_modules/typeson-registry/dist/index.js';
5
+ } from '../../vendor/typeson-registry/dist/index.js';
6
6
  import {
7
7
  typesonPathToJSONPointer
8
8
  } from '../utils/jsonPointer.js';
package/src/formats.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import Types from './types.js';
2
- import {jml} from '../node_modules/jamilih/dist/jml-es.js';
2
+ import {jml} from '../vendor/jamilih/dist/jml-es.js';
3
3
 
4
4
  import {$e, DOM} from './utils/templateUtils.js';
5
5
  import dialogs from './utils/dialogs.js';
@@ -1,4 +1,4 @@
1
- import {jml, nbsp} from '../../node_modules/jamilih/dist/jml-es.js';
1
+ import {jml, nbsp} from '../../vendor/jamilih/dist/jml-es.js';
2
2
 
3
3
  import Types, {getPropertyValueFromLegend} from '../types.js';
4
4
  import {$e, U, DOM} from '../utils/templateUtils.js';
@@ -1,5 +1,5 @@
1
1
  import {$e} from '../utils/templateUtils.js';
2
- import {jml} from '../../node_modules/jamilih/dist/jml-es.js';
2
+ import {jml} from '../../vendor/jamilih/dist/jml-es.js';
3
3
  import Types from '../types.js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import {$e} from '../utils/templateUtils.js';
2
- import {jml} from '../../node_modules/jamilih/dist/jml-es.js';
2
+ import {jml} from '../../vendor/jamilih/dist/jml-es.js';
3
3
  import Types from '../types.js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /* globals sceditor */
2
- import {jml} from '../../node_modules/jamilih/dist/jml-es.js';
2
+ import {jml} from '../../vendor/jamilih/dist/jml-es.js';
3
3
  import {$e} from '../utils/templateUtils.js';
4
4
 
5
5
  import dialogs from '../utils/dialogs.js';
@@ -1,4 +1,4 @@
1
- import {jml} from '../node_modules/jamilih/dist/jml-es.js';
1
+ import {jml} from '../vendor/jamilih/dist/jml-es.js';
2
2
  import Formats from './formats.js';
3
3
  import {$e, DOM} from './utils/templateUtils.js';
4
4
 
package/src/types.js CHANGED
@@ -1,7 +1,7 @@
1
- import {jml} from '../node_modules/jamilih/dist/jml-es.js';
1
+ import {jml} from '../vendor/jamilih/dist/jml-es.js';
2
2
  import {
3
3
  Typeson, getJSONType, structuredCloningThrowing
4
- } from '../node_modules/typeson-registry/dist/index.js';
4
+ } from '../vendor/typeson-registry/dist/index.js';
5
5
 
6
6
  import Formats from './formats.js';
7
7
 
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable promise/avoid-new */
2
- import {jml, nbsp} from '../../node_modules/jamilih/dist/jml-es.js';
2
+ import {jml, nbsp} from '../../vendor/jamilih/dist/jml-es.js';
3
3
  import {$e} from './templateUtils.js';
4
4
 
5
5
  const localeStrings = {