@node-wot/binding-file
Advanced tools
Comparing version
@@ -24,3 +24,3 @@ "use strict"; | ||
readResource(form) { | ||
return new Promise((resolve, reject) => { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const filepath = form.href.split("//"); | ||
@@ -53,23 +53,23 @@ const resource = fs.createReadStream(filepath[1]); | ||
} | ||
resolve(new core_1.Content(contentType, resource)); | ||
return new core_1.Content(contentType, resource); | ||
}); | ||
} | ||
writeResource(form, content) { | ||
return new Promise((resolve, reject) => { | ||
reject(new Error(`FileClient does not implement write`)); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
throw new Error("FileClient does not implement write"); | ||
}); | ||
} | ||
invokeResource(form, content) { | ||
return new Promise((resolve, reject) => { | ||
reject(new Error(`FileClient does not implement invoke`)); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
throw new Error("FileClient does not implement invoke"); | ||
}); | ||
} | ||
unlinkResource(form) { | ||
return new Promise((resolve, reject) => { | ||
reject(new Error(`FileClient does not implement unlink`)); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
throw new Error("FileClient does not implement unlink"); | ||
}); | ||
} | ||
subscribeResource(form, next, error, complete) { | ||
return new Promise((resolve, reject) => { | ||
reject(new Error(`FileClient does not implement subscribe`)); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
throw new Error("FileClient does not implement subscribe"); | ||
}); | ||
@@ -76,0 +76,0 @@ } |
{ | ||
"name": "@node-wot/binding-file", | ||
"version": "0.8.8", | ||
"version": "0.8.9", | ||
"description": "File client protocol binding for node-wot", | ||
@@ -17,20 +17,6 @@ "author": "Eclipse Thingweb <thingweb-dev@eclipse.org> (https://thingweb.io/)", | ||
"devDependencies": { | ||
"@node-wot/td-tools": "0.8.8", | ||
"@types/node": "16.18.35", | ||
"@typescript-eslint/eslint-plugin": "^4.30.0", | ||
"@typescript-eslint/parser": "^4.30.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-import": "^2.24.2", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"eslint-plugin-unused-imports": "^1.1.4", | ||
"prettier": "^2.3.2", | ||
"typescript": "4.7.4", | ||
"typescript-standard": "^0.3.36", | ||
"wot-typescript-definitions": "0.8.0-SNAPSHOT.26" | ||
"@node-wot/td-tools": "0.8.9" | ||
}, | ||
"dependencies": { | ||
"@node-wot/core": "0.8.8" | ||
"@node-wot/core": "0.8.9" | ||
}, | ||
@@ -37,0 +23,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
1
-93.33%13455
-6.56%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated