@tpluscode/rdf-string
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -5,2 +5,14 @@ # Changelog | ||
### [0.2.8](https://github.com/tpluscode/rdf-string/compare/v0.2.7...v0.2.8) (2020-02-27) | ||
### Features | ||
* make it possible to create custom interpolatable objects ([24c60b1](https://github.com/tpluscode/rdf-string/commit/24c60b101ad7c5080dc0d46c624e4651677f8825)) | ||
### Bug Fixes | ||
* allow any object to be interpolated value ([87184eb](https://github.com/tpluscode/rdf-string/commit/87184ebe55909bdd0cb7e1348bf61d8ef8709a49)) | ||
### [0.2.7](https://github.com/tpluscode/rdf-string/compare/v0.2.6...v0.2.7) (2020-02-27) | ||
@@ -7,0 +19,0 @@ |
@@ -58,3 +58,3 @@ import { literal } from '@rdfjs/data-model'; | ||
else if (typeof value === 'object') { | ||
if (value instanceof TemplateResult) { | ||
if ('_toPartialString' in value) { | ||
partialResult = value._toPartialString(options); | ||
@@ -61,0 +61,0 @@ } |
@@ -64,3 +64,3 @@ "use strict"; | ||
else if (typeof value === 'object') { | ||
if (value instanceof TemplateResult) { | ||
if ('_toPartialString' in value) { | ||
partialResult = value._toPartialString(options); | ||
@@ -67,0 +67,0 @@ } |
@@ -35,5 +35,5 @@ import { BlankNode, DatasetCore, Literal, NamedNode, Quad, Term, Variable } from 'rdf-js'; | ||
toString(options?: Partial<TOptions>): string; | ||
protected _toPartialString(options: TOptions): PartialString; | ||
_toPartialString(options: TOptions): PartialString; | ||
} | ||
export {}; | ||
//# sourceMappingURL=TemplateResult.d.ts.map |
import { DatasetCore, Quad, Term } from 'rdf-js'; | ||
export declare type Value<TResult, TTerm extends Term = Term> = DatasetCore | Quad | TResult | TTerm | string | undefined | null | number | boolean | Date; | ||
export declare type Value<TResult, TTerm extends Term = Term> = DatasetCore | Quad | TResult | TTerm | string | undefined | null | number | boolean | Date | object; | ||
//# sourceMappingURL=value.d.ts.map |
{ | ||
"name": "@tpluscode/rdf-string", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Simplifies creating of RDF strings using ECMAscript templates", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/index.js", |
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
60423