@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -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.
@@ -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('monsterUpdater');
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
 
@@ -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 {*}
@@ -149,7 +149,7 @@ function getMonsterVersion() {
149
149
  }
150
150
 
151
151
  /** don't touch, replaced by make with package.json version */
152
- monsterVersion = new Version('2.1.0')
152
+ monsterVersion = new Version('2.1.1')
153
153
 
154
154
  return monsterVersion;
155
155
 
@@ -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(monsterUpdater)"></monster-testclass2>');
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);
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version('2.1.0')
10
+ monsterVersion = new Version('2.1.1')
11
11
 
12
12
  let m = getMonsterVersion();
13
13