-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for @direction
.
#19
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #19 +/- ##
==========================================
+ Coverage 75.93% 76.17% +0.24%
==========================================
Files 10 10
Lines 590 596 +6
==========================================
+ Hits 448 454 +6
Misses 142 142
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to update:
https://github.com/digitalbazaar/di-sd-primitives/blob/v3.0.4/lib/skolemize.js#L104-L105
Also the rdfDirection
option should probably be done before ...options
to allow the caller to override if they want to (in all the places).
lib/canonicalize.js
Outdated
const opts = { | ||
...options, produceGeneralizedRdf: false, rdfDirection: 'i18n-datatype' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const opts = { | |
...options, produceGeneralizedRdf: false, rdfDirection: 'i18n-datatype' | |
const opts = { | |
rdfDirection: 'i18n-datatype', ...options, produceGeneralizedRdf: false |
lib/canonicalize.js
Outdated
const opts = {...options, produceGeneralizedRdf: false}; | ||
const opts = { | ||
...options, produceGeneralizedRdf: false, rdfDirection: 'i18n-datatype' | ||
}; | ||
delete opts.format; | ||
opts.produceGeneralizedRdf = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opts.produceGeneralizedRdf = false; |
No description provided.