Socket
Socket
Sign inDemoInstall

cnd

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cnd - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

8

lib/BITSNPIECES.js

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {

@@ -368,3 +368,3 @@ var CND, njs_fs, njs_path, njs_util, rpr, validate_isa_number,

if (limit == null) {
limit = Infinity;
limit = 2e308;
}

@@ -450,3 +450,3 @@ if (include_source == null) {

this._source_line_from_caller_info = function(info) {
var R, error, error1, line_nr, route, source_lines;
var R, error, line_nr, route, source_lines;
route = info['route'];

@@ -606,3 +606,3 @@ line_nr = info['line-nr'];

this.get_app_home = function(routes) {
var error, error1, i, len, route;
var error, i, len, route;
if (routes == null) {

@@ -609,0 +609,0 @@ routes = null;

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4

@@ -3,0 +3,0 @@ /* LIST methods */

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {

@@ -3,0 +3,0 @@

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {

@@ -3,0 +3,0 @@

@@ -1,4 +0,4 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {
var i, len, method_count, module, name, njs_util, ref, route, routes, rpr, value;
var base, i, len, method_count, module, name, njs_util, ref, route, routes, rpr, value, σ_cnd;

@@ -9,2 +9,12 @@ njs_util = require('util');

σ_cnd = Symbol["for"]('cnd');
if (global[σ_cnd] == null) {
global[σ_cnd] = {};
}
if ((base = global[σ_cnd]).t0 == null) {
base.t0 = Date.now();
}
method_count = 0;

@@ -11,0 +21,0 @@

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {

@@ -58,3 +58,3 @@ var CND, TRM, alert, badge, debug, echo, help, include, info, log, njs_path, praise, rpr, test, urge, warn, whisper,

T.eq(CND.type_of({}), 'pod');
T.eq(CND.type_of(NaN), 'nan');
T.eq(CND.type_of(0/0), 'nan');
T.eq(CND.type_of(1 / 0), 'infinity');

@@ -214,3 +214,3 @@ T.eq(CND.type_of(-1 / 0), 'infinity');

my_null: null,
my_nan: NaN,
my_nan: 0/0,
my_local_symbol: Symbol('local-symbol'),

@@ -236,2 +236,12 @@ my_global_symbol: Symbol["for"]('global-symbol')

this["logging with timestamps"] = function(T, done) {
var my_badge, my_help, my_info;
my_badge = 'BITSNPIECES/test';
my_info = TRM.get_logger('info', badge);
my_help = TRM.get_logger('help', badge);
my_info('helo');
my_help('world');
return done();
};
this._main = function(handler) {

@@ -244,5 +254,6 @@ return test(this, {

this._prune = function() {
var name, value;
for (name in this) {
value = this[name];
var name, ref, value;
ref = this;
for (name in ref) {
value = ref[name];
if (name.startsWith('_')) {

@@ -259,3 +270,3 @@ continue;

if (module.parent == null) {
include = ["test type_of", "test size_of", "is_subset", "deep_copy", "XJSON (1)", "XJSON (2)", "XJSON (3)"];
include = ["test type_of", "test size_of", "is_subset", "deep_copy", "XJSON (1)", "XJSON (2)", "XJSON (3)", "logging with timestamps"];
this._prune();

@@ -262,0 +273,0 @@ this._main();

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {

@@ -3,0 +3,0 @@ this.blink = "\x1b[5m";

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {

@@ -3,0 +3,0 @@ var CND, ansi_vt100_cc_matcher, rgb_hex_by_vt100_colorcode;

@@ -1,4 +0,4 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {
var TYPES, _rpr, badge, color_code, color_name, effect_name, effect_names, effect_off, effect_on, fn, fn1, isa_text, lines_from_stdout, rainbow_color_names, rainbow_idx, ref,
var TYPES, _rpr, badge, color_code, color_name, effect_name, effect_names, effect_off, effect_on, fn, fn1, get_timestamp, isa_text, lines_from_stdout, rainbow_color_names, rainbow_idx, ref, σ_cnd,
slice = [].slice;

@@ -22,2 +22,4 @@

σ_cnd = Symbol["for"]('cnd');
this.rpr = function(x) {

@@ -347,2 +349,3 @@ return _rpr(x, {

prefix = badge != null ? (this.grey(badge)).concat(' ', pointer) : pointer;
prefix = (this.grey(get_timestamp())) + ' ' + prefix;
if (colorize != null) {

@@ -368,3 +371,19 @@ R = (function(_this) {

get_timestamp = function() {
var m, s, t1;
t1 = Math.floor((Date.now() - global[σ_cnd].t0) / 1000);
s = t1 % 60;
s = '' + s;
if (s.length < 2) {
s = '0' + s;
}
m = (Math.floor(t1 / 60)) % 100;
m = '' + m;
if (m.length < 2) {
m = '0' + m;
}
return m + ":" + s;
};
/* TAINT naming unstable, to be renamed */

@@ -459,3 +478,3 @@

this._get_prototypes_types_and_property_names = function(x, types_and_names) {
var error, error1, error2, length, name, names, prototype, role, x_;
var error, length, name, names, prototype, role, x_;
role = types_and_names.length === 0 ? 'type' : 'prototype';

@@ -493,4 +512,4 @@ if (x == null) {

}
} catch (error2) {
error = error2;
} catch (error1) {
error = error1;
if (!error['message'].test(/^Cannot read property 'length' of /)) {

@@ -497,0 +516,0 @@ throw error;

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {

@@ -63,4 +63,4 @@ var isBuffer, js_type_of, log, njs_util, ref, rpr,

return 'boolean';
case -Infinity:
case Infinity:
case -2e308:
case 2e308:
return 'infinity';

@@ -125,3 +125,3 @@ }

this.isa_infinity = function(x) {
return x === Infinity || x === -Infinity;
return x === 2e308 || x === -2e308;
};

@@ -128,0 +128,0 @@

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4

@@ -3,0 +3,0 @@ /*

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

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.4
(function() {

@@ -59,3 +59,3 @@ var CND, log, rpr;

case '-x-nan':
return NaN;
return 0/0;
case '-x-buffer':

@@ -62,0 +62,0 @@ return Buffer.from(value['%self']);

{
"name": "cnd",
"version": "4.2.0",
"version": "4.2.1",
"description": "a grab-bag NodeJS package mainly for functionalities that used to live in coffeenode-trm, coffeenode-bitsnpieces, and coffeenode-types",

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

@@ -438,2 +438,16 @@ <!-- START doctoc generated TOC please keep comment here to allow auto update -->

北京 (Peking) 位於華北 (North*
```
```
## ToDo
* [ ] Add a utility method to enable catch-all listeners on event emitters (as used in kleinbild):
```coffee
_emit = R.emit.bind R
R.emit = ( event_name, P... ) =>
_emit '*', event_name, P...
_emit event_name, P...
return null
R.on '*', ( event_name, P... ) =>
@U.dump event_name, P...
return null
```

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