Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 2.5.0 to 3.0.0

1

lib/main.js

@@ -315,3 +315,2 @@ // Generated by CoffeeScript 2.5.0

this.Datom = Datom;
this.HTML = require('./html');
return this;

@@ -318,0 +317,0 @@ }

// Generated by CoffeeScript 2.5.0
(function() {
'use strict';
var CND, Intertype, alert, badge, debug, help, info, intertype, jr, rpr, tagname_head_pattern, tagname_pattern, tagname_tail_pattern, urge, warn, whisper,
var CND, Intertype, alert, badge, debug, help, info, intertype, jr, rpr, urge, warn, whisper,
indexOf = [].indexOf;

@@ -122,54 +122,4 @@

//===========================================================================================================
//-----------------------------------------------------------------------------------------------------------
/* thx to https://www.w3.org/TR/xml */
tagname_head_pattern = /a-zA-Z:_\xc0-\xd6\xd8-\xf6\u00f8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\u{10000}-\u{effff}/u;
tagname_tail_pattern = /\.-0-9\xb7\u0300-\u036f\u203f-\u2040/u;
tagname_pattern = RegExp(`^[${tagname_head_pattern.source}][${tagname_head_pattern.source}${tagname_tail_pattern.source}]*$`, "u");
//-----------------------------------------------------------------------------------------------------------
this./* must NOT set global flag */declare('datom_html_tagname', {
tests: {
"x is a text": function(x) {
return this.isa.text(x);
},
"x matches tagname_pattern": function(x) {
return tagname_pattern.test(x);
}
}
});
//-----------------------------------------------------------------------------------------------------------
this.declare('datom_html_naked_attribute_value', {
/* thx to https://raw.githubusercontent.com/mathiasbynens/mothereff.in/master/unquoted-attributes/eff.js
also see https://mothereff.in/unquoted-attributes,
https://mathiasbynens.be/notes/unquoted-attribute-values */
tests: {
"x is a text": function(x) {
return this.isa.text(x);
},
"x isa datom_html_naked_attribute_text": function(x) {
return this.isa._datom_html_naked_attribute_text(x);
}
}
});
//-----------------------------------------------------------------------------------------------------------
this.declare('_datom_html_naked_attribute_text', function(x) {
return /^[^ \t\n\f\r"'`=<>]+$/.test(x);
});
// #-----------------------------------------------------------------------------------------------------------
// @_CSS_must_quote = ( x ) ->
// ### NOTE for completeness, from the same source https://mathiasbynens.be/notes/unquoted-attribute-values ###
// return true if ( x is '' ) or ( x is '-' )
// ### Escapes are valid, so replace them with a valid non-empty string ###
// x = ( x.replace /\\([0-9A-Fa-f]{1,6})[ \t\n\f\r]?/g, 'a' ).replace /\\./g, 'a'
// return not not ( ( /[\0-\x2C\x2E\x2F\x3A-\x40\x5B-\x5E\x60\x7B-\x9F]/.test x ) or ( /^-?\d/.test x ) )
}).call(this);
//# sourceMappingURL=types.js.map

2

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

@@ -5,0 +5,0 @@ "main": "lib/main.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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