Socket
Socket
Sign inDemoInstall

datom

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datom - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

4

package.json
{
"name": "datom",
"version": "3.0.0",
"version": "3.0.1",
"description": "standardized immutable objects in the spirit of datomic, especially suited for use in data pipelines",

@@ -31,3 +31,3 @@ "main": "lib/main.js",

"dependencies": {
"cnd": "^4.9.0",
"cnd": "^5.3.0",
"emittery": "^0.5.1",

@@ -34,0 +34,0 @@ "intertype": "^3.1.0",

@@ -29,3 +29,2 @@

- [Managing Scope](#managing-scope)
- [HTML Conversion](#html-conversion)
- [To Do](#to-do)

@@ -395,30 +394,5 @@

## HTML Conversion
* For the tagname:
* `d.$key` will become the tagname
* the tagname must conform to the [XML tagname restrictions](https://www.w3.org/TR/xml)
* For the attributes:
* all facets with value `true` (the boolean, not the text) will be turned into 'lone attributes', such
that `{ $key: '<p', contenteditable: true, }` will result in `<p contenteditable>`
* facet values are subject to HTML5 attribute value escaping rules as detailed in
https://mathiasbynens.be/notes/unquoted-attribute-values
* where permitted, values will be left unquoted ('naked'); where necessary, values will be surrounded
by `'` (single quotes)
* facets with an empty string are not treated specially; per attribute value escaping rules, they will
result in `''` (two single quotes)
* all keys that start with a `$` will be ignored
* if `d.$value` is an object, its facets will be turned into HTML attributes; all other keys are ignored
* Open questions:
* how to treat system-level names (sigils `[`, `~`, `]`)?
* ignore?
* as comments?
* as prefixed/namespaced tags?
* how to treat datom keys that contain hyphens, underscores?
* turn underscores into hyphens?
------------------------------------------------------------------------

@@ -425,0 +399,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc