Comparing version 5.0.1 to 5.0.2
@@ -106,3 +106,3 @@ "use strict"; | ||
term: "one", | ||
searchBody: true | ||
onlyBody: true | ||
} | ||
@@ -115,3 +115,3 @@ }); | ||
term: "1", | ||
searchBody: true | ||
onlyBody: true | ||
} | ||
@@ -124,3 +124,3 @@ }); | ||
term: "1 two", | ||
searchBody: true | ||
onlyBody: true | ||
} | ||
@@ -136,3 +136,3 @@ }); | ||
term: "one", | ||
searchHeadline: true | ||
onlyHeadline: true | ||
} | ||
@@ -145,3 +145,3 @@ }); | ||
term: "one 2", | ||
searchHeadline: true | ||
onlyHeadline: true | ||
} | ||
@@ -154,3 +154,3 @@ }); | ||
term: "1", | ||
searchHeadline: true | ||
onlyHeadline: true | ||
} | ||
@@ -157,0 +157,0 @@ }); |
@@ -20,10 +20,5 @@ "use strict"; | ||
const text = (term, options) => { | ||
return Object.assign(Object.assign({ type: types_1.QueryType.TEXT, term }, textOptionsDefault), options); | ||
return Object.assign({ type: types_1.QueryType.TEXT, term }, options); | ||
}; | ||
exports.text = text; | ||
const textOptionsDefault = { | ||
ignore: false, | ||
searchBody: true, | ||
searchHeadline: true, | ||
}; | ||
//# sourceMappingURL=queries.js.map |
@@ -37,4 +37,4 @@ /// <reference types="ws" /> | ||
export interface TextOptions { | ||
searchBody?: boolean; | ||
searchHeadline?: boolean; | ||
onlyBody?: boolean; | ||
onlyHeadline?: boolean; | ||
ignore?: boolean; | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "newsware", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Typescript client for interacting with the Newsware API", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
@@ -114,3 +114,3 @@ import {Api} from "./api"; | ||
term: "one", | ||
searchBody: true | ||
onlyBody: true | ||
} | ||
@@ -124,3 +124,3 @@ }) | ||
term: "1", | ||
searchBody: true | ||
onlyBody: true | ||
} | ||
@@ -134,3 +134,3 @@ }) | ||
term: "1 two", | ||
searchBody: true | ||
onlyBody: true | ||
} | ||
@@ -148,3 +148,3 @@ }) | ||
term: "one", | ||
searchHeadline: true | ||
onlyHeadline: true | ||
} | ||
@@ -158,3 +158,3 @@ }) | ||
term: "one 2", | ||
searchHeadline: true | ||
onlyHeadline: true | ||
} | ||
@@ -168,3 +168,3 @@ }) | ||
term: "1", | ||
searchHeadline: true | ||
onlyHeadline: true | ||
} | ||
@@ -171,0 +171,0 @@ }) |
@@ -21,11 +21,4 @@ import {Query, QueryType, TextOptions} from "./types"; | ||
term, | ||
...textOptionsDefault, | ||
...options | ||
} | ||
} | ||
const textOptionsDefault: TextOptions = { | ||
ignore: false, | ||
searchBody: true, | ||
searchHeadline: true, | ||
} |
@@ -43,5 +43,5 @@ import {CloseEvent} from "isomorphic-ws"; | ||
export interface TextOptions { | ||
searchBody?: boolean // defaults to true | ||
searchHeadline?: boolean // defaults to true | ||
ignore?: boolean // defaults to false | ||
onlyBody?: boolean | ||
onlyHeadline?: boolean | ||
ignore?: boolean | ||
} | ||
@@ -48,0 +48,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
60197
1220