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

intertext

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intertext - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

lib/bar.js

17

lib/main.js

@@ -133,2 +133,17 @@ (function() {

//-----------------------------------------------------------------------------------------------------------
this.camelize = function(text) {
/* thx to https://github.com/lodash/lodash/blob/master/camelCase.js */
var i, idx, ref, word, words;
words = text.split('-');
for (idx = i = 1, ref = words.length; i < ref; idx = i += +1) {
word = words[idx];
if (word === '') {
continue;
}
words[idx] = word[0].toUpperCase() + word.slice(1);
}
return words.join('');
};
//===========================================================================================================

@@ -184,1 +199,3 @@

}).call(this);
//# sourceMappingURL=main.js.map

7

lib/tabulate.js

@@ -1,2 +0,1 @@

// Generated by CoffeeScript 2.5.1
(function() {

@@ -87,7 +86,7 @@ //###########################################################################################################

S.box = copy((ref13 = settings['box']) != null ? ref13 : copy(boxes['plain']));
if (CND.isa_number(S.pad)) {
if (isa.float(S.pad)) {
//.........................................................................................................
S.pad = ' '.repeat(S.pad);
}
if (CND.isa_text(S.box)) {
if (isa.text(S.box)) {
//.........................................................................................................

@@ -517,2 +516,2 @@ S.box = box_style = boxes[S.box];

//# sourceMappingURL=tabulate.js.map
//# sourceMappingURL=tabulate.js.map

@@ -1,2 +0,1 @@

// Generated by CoffeeScript 2.5.1
(function() {

@@ -37,3 +36,3 @@ 'use strict';

//-----------------------------------------------------------------------------------------------------------
this["rpr"] = async function(T, done) {
this["BASICS rpr"] = async function(T, done) {
var INTERTEXT, error, i, len, matcher, probe, probes_and_matchers, rpr;

@@ -84,2 +83,24 @@ INTERTEXT = require('../..');

//-----------------------------------------------------------------------------------------------------------
this["BASICS camelize"] = async function(T, done) {
var INTERTEXT, camelize, error, i, len, matcher, probe, probes_and_matchers;
INTERTEXT = require('../..');
({camelize} = INTERTEXT.export());
//.........................................................................................................
probes_and_matchers = [['', ''], ['-', ''], ['--', ''], ['-a-', 'A'], ['-a', 'A'], ['a-', 'a'], ['helo', 'helo'], ['helo-world', 'heloWorld'], ['HELO-WORLD', 'HELOWORLD'], ['µ-DOM', 'µDOM'], ['danish-øre', 'danishØre']];
for (i = 0, len = probes_and_matchers.length; i < len; i++) {
[probe, matcher, error] = probes_and_matchers[i];
await T.perform(probe, matcher, error, function() {
return new Promise(function(resolve) {
var result;
result = camelize(probe);
return resolve(result);
});
});
}
//.........................................................................................................
done();
return null;
};
//###########################################################################################################

@@ -90,8 +111,8 @@ if (module === require.main) {

// await @_demo()
return test(this);
// test @
return test(this["BASICS camelize"]);
})();
}
// test @[ "HTML.datoms_from_html (1)" ]
// test @[ "HTML.datoms_from_html (dubious)" ]
// test @[ "HTML.datoms_from_html (dubious)" ]
// test @[ "HTML.datoms_from_html (2)" ]

@@ -105,2 +126,2 @@ // test @[ "HTML.html_from_datoms (singular tags)" ]

//# sourceMappingURL=basics.test.js.map
//# sourceMappingURL=basics.test.js.map

@@ -1,2 +0,1 @@

// Generated by CoffeeScript 2.5.1
(function() {

@@ -260,3 +259,3 @@ 'use strict';

type: 'underline',
value: "some text"
value: 'some text'
},

@@ -274,11 +273,12 @@ {

],
["┌────────────┬────────────┬────────────┐",
"│\u001b[38;05;255m\u001b[7m\u001b[1mkey \u001b[22m\u001b[27m\u001b[0m│\u001b[38;05;255m\u001b[7m\u001b[1mtype \u001b[22m\u001b[27m\u001b[0m│\u001b[38;05;255m\u001b[7m\u001b[1mvalue \u001b[22m\u001b[27m\u001b[0m│",
"├────────────┼────────────┼────────────┤",
"│\u001b[38;05;34m1 \u001b[0m│\u001b[38;05;27mnormal \u001b[0m│\u001b[38;05;34m123456789 \u001b[0m│",
"│\u001b[38;05;34m2 \u001b[0m│\u001b[38;05;27mnormal \u001b[0m│\u001b[38;05;199m● \u001b[0m│",
"│\u001b[4m\u001b[38;05;34m3 \u001b[0m\u001b[24m│\u001b[4m\u001b[38;05;27munderline \u001b[0m\u001b[24m│\u001b[4m\u001b[38;05;27msome text \u001b[0m\u001b[24m│",
"│\u001b[38;05;34m4 \u001b[0m│\u001b[38;05;27mnormal \u001b[0m│\u001b[38;05;226mtrue \u001b[0m│",
"│\u001b[38;05;34m5 \u001b[0m│\u001b[38;05;27mnormal \u001b[0m│\u001b[38;05;226mfalse \u001b[0m│",
"└────────────┴────────────┴────────────┘"]
['┌────────────┬────────────┬────────────┐',
'│\x1B[38;05;255m\x1B[7m\x1B[1mkey \x1B[22m\x1B[27m\x1B[0m│\x1B[38;05;255m\x1B[7m\x1B[1mtype \x1B[22m\x1B[27m\x1B[0m│\x1B[38;05;255m\x1B[7m\x1B[1mvalue \x1B[22m\x1B[27m\x1B[0m│',
'├────────────┼────────────┼────────────┤',
'│\x1B[38;05;255m1 \x1B[0m│\x1B[38;05;27mnormal \x1B[0m│\x1B[38;05;255m123456789 \x1B[0m│',
'│\x1B[38;05;255m2 \x1B[0m│\x1B[38;05;27mnormal \x1B[0m│\x1B[38;05;199m● \x1B[0m│',
'│\x1B[4m\x1B[38;05;255m3 \x1B[0m\x1B[24m│\x1B[4m\x1B[38;05;27munderline \x1B[0m\x1B[24m│\x1B[4m\x1B[38;05;27msome text \x1B[0m\x1B[24m│',
'│\x1B[38;05;255m4 \x1B[0m│\x1B[38;05;27mnormal \x1B[0m│\x1B[38;05;226mtrue \x1B[0m│',
'│\x1B[38;05;255m5 \x1B[0m│\x1B[38;05;27mnormal \x1B[0m│\x1B[38;05;226mfalse \x1B[0m│',
'└────────────┴────────────┴────────────┘'],
null
]

@@ -743,2 +743,2 @@ ];

//# sourceMappingURL=tabulate.test.js.map
//# sourceMappingURL=tabulate.test.js.map

@@ -0,1 +1,2 @@

// Generated by CoffeeScript 2.5.1
(function() {

@@ -80,1 +81,3 @@ 'use strict';

}).call(this);
//# sourceMappingURL=ucd.test.js.map

@@ -0,1 +1,2 @@

// Generated by CoffeeScript 2.5.1
(function() {

@@ -60,1 +61,3 @@ 'use strict';

}).call(this);
//# sourceMappingURL=ucd.js.map
{
"name": "intertext",
"version": "2.1.0",
"version": "2.2.0",
"description": "Services for Recurrent Text-related Tasks",

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

"build": "coffee --map -o lib -c src",
"test": "npm run build && node lib/tests/main.js"
"test": "node lib/tests/main.js"
},

@@ -33,10 +33,11 @@ "repository": {

"dependencies": {
"cnd": "^5.3.2",
"cnd": "^9.0.0",
"color-convert": "^2.0.1",
"cupofjoe": "0.0.4",
"datom": "^5.0.0",
"hyphenopoly": "^4.3.0",
"intertype": "^3.4.1",
"hyphenopoly": "^4.5.0",
"intertype": "^7.0.1",
"linebreak": "^1.0.2",
"multimix": "^2.2.1",
"steampipes": "^6.1.1",
"multimix": "^4.0.0",
"steampipes": "^6.3.0",
"term-size": "^2.2.0",

@@ -46,4 +47,4 @@ "to-width": "^1.0.4"

"devDependencies": {
"guy-test": "^2.0.1"
"guy-test": "^4.0.0"
}
}

@@ -50,1 +50,7 @@

colorizer](https://github.com/loveencounterflow/datamill/blob/2d0ca3a784c8f3f9ba8d9fd6277d18c4ee859fb1/src/experiments/colorizer.coffee)
* [ ] implement number formatting using `Intl.NumberFormat`, including percentages, rounding

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

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

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