@tpluscode/rdf-string
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.2.10](https://github.com/tpluscode/rdf-string/compare/v0.2.9...v0.2.10) (2020-04-08) | ||
### Features | ||
* reduce arrays by interpolating individual items ([3c47ccc](https://github.com/tpluscode/rdf-string/commit/3c47ccc1cf18778de1d4a82291f2875885bed610)) | ||
### [0.2.9](https://github.com/tpluscode/rdf-string/compare/v0.2.8...v0.2.9) (2020-04-03) | ||
@@ -7,0 +14,0 @@ |
@@ -57,2 +57,5 @@ import { literal } from '@rdfjs/data-model'; | ||
} | ||
else if (Array.isArray(value)) { | ||
partialResult = value.reduce((result, item) => this._tag `${result}\n${item}`, this._tag ``)._toPartialString(options); | ||
} | ||
else if (typeof value === 'object') { | ||
@@ -59,0 +62,0 @@ if ('_toPartialString' in value) { |
{ | ||
"name": "@tpluscode/rdf-string", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "Simplifies creating of RDF strings using ECMAscript templates", | ||
@@ -56,3 +56,3 @@ "main": "main.js", | ||
"typedoc": "^0.17.3", | ||
"typescript": "^3.7.5" | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -59,0 +59,0 @@ "repository": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
42330
614
0