Comparing version 0.1.3 to 0.1.4
@@ -107,3 +107,9 @@ "use strict"; | ||
const LINCD = __importStar(require("./LINCD")); | ||
_a = LINCD_1.linkedModule('lincd'), exports.linkedComponent = _a.linkedComponent, exports.linkedShape = _a.linkedShape; | ||
if (typeof window !== 'undefined') { | ||
window['lincd'] = { _modules: {} }; | ||
} | ||
else if (typeof global !== 'undefined') { | ||
global['lincd'] = { _modules: {} }; | ||
} | ||
_a = (0, LINCD_1.linkedModule)('lincd'), exports.linkedComponent = _a.linkedComponent, exports.linkedShape = _a.linkedShape; | ||
//we do not export all the classes directly, because we don't want people to import {NamedNode} from '@dacore/core' for example | ||
@@ -161,8 +167,6 @@ //because these sort of imports do not work well with tree shaking | ||
if (typeof window !== 'undefined') { | ||
window['lincd'] = lincdExport; | ||
window['lincd']._modules = {}; | ||
Object.assign(window['lincd'], lincdExport); | ||
} | ||
else if (typeof global !== 'undefined') { | ||
global['lincd'] = lincdExport; | ||
global['lincd']._modules = {}; | ||
Object.assign(global['lincd'], lincdExport); | ||
} |
@@ -112,3 +112,3 @@ "use strict"; | ||
//register the component and its shape | ||
Component_1.registerComponent(constructor); | ||
(0, Component_1.registerComponent)(constructor); | ||
//return the original class without modifications | ||
@@ -115,0 +115,0 @@ return constructor; |
@@ -7,7 +7,7 @@ "use strict"; | ||
const literalProperty = (config) => { | ||
return exports.linkedProperty(config); | ||
return (0, exports.linkedProperty)(config); | ||
}; | ||
exports.literalProperty = literalProperty; | ||
const objectProperty = (config) => { | ||
return exports.linkedProperty(config); | ||
return (0, exports.linkedProperty)(config); | ||
}; | ||
@@ -14,0 +14,0 @@ exports.objectProperty = objectProperty; |
{ | ||
"name": "lincd", | ||
"license": "MPL-2.0", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Linked Interoperable Code & Data - A javascript library for interoperability & collaboration based on W3C's Linked Data standards", | ||
@@ -12,4 +12,4 @@ "main": "lib/index.js", | ||
"dev": "npm exec lincd dev", | ||
"prepare": "npm exec lincd build production", | ||
"postpublish": "npm exec lincd publish" | ||
"prepardde": "npm exec lincd build production", | ||
"ddpostpublish": "npm exec lincd publish" | ||
}, | ||
@@ -16,0 +16,0 @@ "keywords": [ |
8412
877602
55