@draganfilipovic/confluence-map
Advanced tools
Comparing version 1.2.6 to 1.2.7
{ | ||
"name": "@draganfilipovic/confluence-map", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "embed OSM into Confluence pages", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -5,25 +5,21 @@ class NameSpace { | ||
this._config = {}; | ||
const NS = window[name] || this.public(); | ||
window[name] = NS; | ||
return NS; | ||
window[name] = window[name] || this; | ||
return window[name]; | ||
} | ||
public() { | ||
return { | ||
get config() { | ||
return this._config; | ||
}, | ||
set config(conf) { | ||
this._config = conf; | ||
}, | ||
get state() { | ||
return this._state; | ||
}, | ||
set state({ id, data, field }) { | ||
if (field) { | ||
this._state[id][field] = data; | ||
} else { | ||
this._state[id] = data; | ||
} | ||
} | ||
get config() { | ||
return this._config; | ||
} | ||
set config(conf) { | ||
this._config = conf; | ||
} | ||
get state() { | ||
return this._state; | ||
} | ||
set state({ id, data, field }) { | ||
this._state[id] = this._state[id] || {} | ||
if (field) { | ||
this._state[id][field] = data; | ||
} else { | ||
this._state[id] = data; | ||
} | ||
@@ -30,0 +26,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43567
429