@node-wot/core
Advanced tools
Comparing version 0.8.9 to 0.8.10
@@ -7,3 +7,3 @@ "use strict"; | ||
constructor(subMediaType) { | ||
this.subMediaType = subMediaType == null ? "text/plain" : subMediaType; | ||
this.subMediaType = subMediaType !== null && subMediaType !== void 0 ? subMediaType : "text/plain"; | ||
} | ||
@@ -10,0 +10,0 @@ getMediaType() { |
@@ -79,3 +79,3 @@ "use strict"; | ||
this.events = {}; | ||
const deepClonedModel = structuredClone(thingModel); | ||
const deepClonedModel = JSON.parse(JSON.stringify(thingModel)); | ||
Object.assign(this, deepClonedModel); | ||
@@ -82,0 +82,0 @@ TD.setContextLanguage(this, TD.DEFAULT_CONTEXT_LANGUAGE, false); |
{ | ||
"name": "@node-wot/core", | ||
"version": "0.8.9", | ||
"version": "0.8.10", | ||
"description": "W3C Web of Things (WoT) Servient framework", | ||
@@ -23,3 +23,3 @@ "author": "Eclipse Thingweb <thingweb-dev@eclipse.org> (https://thingweb.io/)", | ||
"dependencies": { | ||
"@node-wot/td-tools": "0.8.9", | ||
"@node-wot/td-tools": "0.8.10", | ||
"@petamoriken/float16": "^3.1.1", | ||
@@ -26,0 +26,0 @@ "ajv": "^8.11.0", |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -26,3 +26,3 @@ * See the NOTICE file(s) distributed with this work for additional | ||
constructor(subMediaType?: string) { | ||
this.subMediaType = subMediaType == null ? "text/plain" : subMediaType; | ||
this.subMediaType = subMediaType ?? "text/plain"; | ||
} | ||
@@ -29,0 +29,0 @@ |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
@@ -125,3 +125,5 @@ /******************************************************************************** | ||
const deepClonedModel = structuredClone(thingModel); | ||
// Deep clone the Thing Model | ||
// without functions or methods | ||
const deepClonedModel = JSON.parse(JSON.stringify(thingModel)); | ||
Object.assign(this, deepClonedModel); | ||
@@ -128,0 +130,0 @@ |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
/******************************************************************************** | ||
* Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
@@ -4,0 +4,0 @@ * See the NOTICE file(s) distributed with this work for additional |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
415419
7141
+ Added@node-wot/td-tools@0.8.10(transitive)
- Removed@node-wot/td-tools@0.8.9(transitive)
Updated@node-wot/td-tools@0.8.10