@schukai/monster 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/source/data/datasource/storage.mjs +1 -1
- package/source/dom/constants.mjs +1 -1
- package/source/dom/customelement.mjs +4 -3
- package/source/text/formatter.mjs +0 -1
- package/source/types/node.mjs +2 -1
- package/source/types/version.mjs +1 -1
- package/test/cases/dom/customelement.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
package/package.json
CHANGED
@@ -15,7 +15,7 @@ export {Storage, storageObjectSymbol}
|
|
15
15
|
* @private
|
16
16
|
* @type {symbol}
|
17
17
|
*/
|
18
|
-
const storageObjectSymbol = Symbol('storageObject')
|
18
|
+
const storageObjectSymbol = Symbol.for ('@schukai/monster/data/datasource/storage/@@storageObject')
|
19
19
|
|
20
20
|
/**
|
21
21
|
* The class represents a record.
|
package/source/dom/constants.mjs
CHANGED
@@ -221,7 +221,7 @@ const ATTRIBUTE_ERRORMESSAGE = ATTRIBUTE_PREFIX + 'error';
|
|
221
221
|
* @license AGPLv3
|
222
222
|
* @since 1.24.0
|
223
223
|
*/
|
224
|
-
const objectUpdaterLinkSymbol = Symbol('
|
224
|
+
const objectUpdaterLinkSymbol = Symbol.for('@schukai/monster/dom/@@object-updater-link');
|
225
225
|
|
226
226
|
/**
|
227
227
|
* @memberOf Monster.DOM
|
@@ -27,26 +27,27 @@ import {
|
|
27
27
|
import {findDocumentTemplate, Template} from "./template.mjs";
|
28
28
|
import {Updater} from "./updater.mjs";
|
29
29
|
import {instanceSymbol} from '../constants.mjs';
|
30
|
+
|
30
31
|
export {CustomElement, initMethodSymbol, assembleMethodSymbol, attributeObserverSymbol, registerCustomElement, assignUpdaterToElement, getSlottedElements}
|
31
32
|
|
32
33
|
/**
|
33
34
|
* @memberOf Monster.DOM
|
34
35
|
* @type {symbol}
|
35
36
|
*/
|
36
|
-
const initMethodSymbol = Symbol('initMethodSymbol');
|
37
|
+
const initMethodSymbol = Symbol.for('@schukai/monster/dom/@@initMethodSymbol');
|
37
38
|
|
38
39
|
/**
|
39
40
|
* @memberOf Monster.DOM
|
40
41
|
* @type {symbol}
|
41
42
|
*/
|
42
|
-
const assembleMethodSymbol = Symbol('assembleMethodSymbol');
|
43
|
+
const assembleMethodSymbol = Symbol.for('@schukai/monster/dom/@@assembleMethodSymbol');
|
43
44
|
|
44
45
|
/**
|
45
46
|
* this symbol holds the attribute observer callbacks. The key is the attribute name.
|
46
47
|
* @memberOf Monster.DOM
|
47
48
|
* @type {symbol}
|
48
49
|
*/
|
49
|
-
const attributeObserverSymbol = Symbol('attributeObserver');
|
50
|
+
const attributeObserverSymbol = Symbol.for('@schukai/monster/dom/@@attributeObserver');
|
50
51
|
|
51
52
|
|
52
53
|
/**
|
@@ -12,7 +12,6 @@ import {Pipe} from "../data/pipe.mjs";
|
|
12
12
|
import {BaseWithOptions} from "../types/basewithoptions.mjs";
|
13
13
|
import {isObject, isString} from "../types/is.mjs";
|
14
14
|
import {validateArray, validateString} from "../types/validate.mjs";
|
15
|
-
import {getMonsterVersion} from "../types/version.mjs";
|
16
15
|
|
17
16
|
export {Formatter}
|
18
17
|
|
package/source/types/node.mjs
CHANGED
@@ -10,6 +10,7 @@ import {isPrimitive} from "./is.mjs";
|
|
10
10
|
import {NodeList} from './nodelist.mjs';
|
11
11
|
import {validateInstance} from './validate.mjs';
|
12
12
|
import {instanceSymbol} from '../constants.mjs';
|
13
|
+
|
13
14
|
export {Node}
|
14
15
|
|
15
16
|
/**
|
@@ -60,7 +61,7 @@ class Node extends Base {
|
|
60
61
|
static get [instanceSymbol]() {
|
61
62
|
return Symbol.for("@schukai/monster/types/node");
|
62
63
|
}
|
63
|
-
|
64
|
+
|
64
65
|
|
65
66
|
/**
|
66
67
|
* @property {*}
|
package/source/types/version.mjs
CHANGED
@@ -133,7 +133,7 @@ describe('DOM', function () {
|
|
133
133
|
try {
|
134
134
|
expect(document.getElementsByTagName('monster-testclass2').length).is.equal(1);
|
135
135
|
expect(document.getElementsByTagName('monster-testclass2').item(0).shadowRoot.innerHTML).is.equal('<h1></h1><article><p>test</p><div id="container"></div></article>');
|
136
|
-
expect(document.getElementById('test1')).contain.html('<monster-testclass2 data-monster-objectlink="Symbol(
|
136
|
+
expect(document.getElementById('test1')).contain.html('<monster-testclass2 data-monster-objectlink="Symbol(@schukai/monster/dom/@@object-updater-link)"></monster-testclass2>');
|
137
137
|
return done();
|
138
138
|
} catch (e) {
|
139
139
|
done(e);
|
package/test/cases/monster.mjs
CHANGED