Skip to content

Commit

Permalink
update wot-typscript-definitions to version 0.6.0-SNAPSHOT.5
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeintner committed Jan 14, 2019
1 parent 66c02c3 commit 8407643
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/binding-coap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"@types/chai": "4.0.4",
"@types/node": "10.9.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5",
"chai": "4.1.2",
"mocha": "3.5.3",
"mocha-typescript": "1.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/binding-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@types/chai": "4.0.4",
"@types/node": "10.9.4",
"@types/request-promise": "4.1.41",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5",
"chai": "4.1.2",
"mocha": "3.5.3",
"mocha-typescript": "1.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/binding-mqtt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/chai": "4.0.4",
"@types/node": "10.9.4",
"@types/request-promise": "4.1.41",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5",
"chai": "4.1.2",
"mocha": "3.5.3",
"mocha-typescript": "1.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/binding-websockets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/chai": "4.0.4",
"@types/node": "10.9.4",
"@types/ws": "5.1.2",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5",
"@node-wot/binding-http": "0.6.0-SNAPSHOT.4",
"@node-wot/td-tools": "0.6.0-SNAPSHOT.4",
"@node-wot/core": "0.6.0-SNAPSHOT.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@types/node": "10.9.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5",
"ts-node": "3.3.0",
"typescript": "2.9.2",
"typescript-standard": "0.3.30"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"@types/chai": "4.0.4",
"@types/node": "10.9.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5",
"chai": "4.1.2",
"mocha": "3.5.3",
"mocha-typescript": "1.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/demo-servients/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@types/node": "10.9.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5",
"ts-node": "3.3.0",
"typescript": "2.9.2",
"typescript-standard": "0.3.30"
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@types/chai": "4.0.4",
"@types/node": "10.9.4",
"@types/request-promise": "4.1.41",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5",
"@node-wot/td-tools": "0.6.0-SNAPSHOT.4",
"@node-wot/core": "0.6.0-SNAPSHOT.4",
"@node-wot/binding-http": "0.6.0-SNAPSHOT.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/td-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"typescript-standard": "0.3.30",
"webpack": "4.16.0",
"webpack-command": "^0.4.1",
"wot-typescript-definitions": "0.6.0-SNAPSHOT.4"
"wot-typescript-definitions": "0.6.0-SNAPSHOT.5"
},
"dependencies": {
"is-absolute-url": "2.1.0"
Expand Down
8 changes: 7 additions & 1 deletion packages/td-tools/src/thing-description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,19 @@ export class Security implements WoT.SecurityScheme {
proxyURI?: string;
}

export class ExpectedResponse implements WoT.ExpectedResponse {
contentType?: string;
}

/** Implements the Interaction Form description */
export class Form implements WoT.Form {
href: string;
subprotocol?: string;
op?: string | Array<string>;
contentType?: string;
security?: WoT.Security;
security?: Array<string>; // WoT.Security;
scopes?: Array<string>;
response?: ExpectedResponse;

constructor(href: string, contentType?: string) {
this.href = href;
Expand Down

0 comments on commit 8407643

Please sign in to comment.