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

checkv

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

checkv - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

12

lib/Check.js
'use strict'
const log = require('log-segment')
const lib = require('./lib')
const validate = require('./validate/')
log.add({
segments: lib.check.log
})
// const log = require('log-segment')
// log.add({segments: lib.checkv.log})

@@ -26,3 +22,3 @@ /**

if (!rules || Object.keys(rules).length < 1) {
log.warning('check', 'no rules checking value', value)
console.log('chekcv', 'no rules checking value', value)
return true

@@ -99,3 +95,3 @@ }

function __unknownRule (value, rule) {
log.warning('check', 'unknow rule', rule, 'checking value', value)
console.warn('checkv', 'unknow rule', rule, 'checking value', value)
return false

@@ -102,0 +98,0 @@ }

'use strict'
const lib = {
check: {
log: {'check': { color: 'white' }}
checkv: {
log: {'checkv': { color: 'white' }}
}

@@ -7,0 +7,0 @@ }

'use strict'
const log = require('log-segment')
const object = {

@@ -30,3 +28,3 @@ isSet: function (value) {

if (!properties) {
log.warning('check', 'object.hasProperties, missing properties')
console.warn('checkv', 'object.hasProperties, missing properties')
}

@@ -78,3 +76,3 @@ if (!properties || !object.isObject(value)) {

log.warning('check', 'object.isExactly, unknown instance', to.constructor.name)
console.warn('checkv', 'object.isExactly, unknown instance', to.constructor.name)
return false

@@ -81,0 +79,0 @@ }

{
"name": "checkv",
"version": "0.0.14",
"version": "0.0.15",
"description": "javascript idiomatic validator",

@@ -11,4 +11,16 @@ "main": "main.js",

"pre-commit": "^x",
"babel": "^6.x",
"babel-core": "^6.x",
"babel-preset-env": "^1.6.x",
"babel-preset-es2015": "^6.x",
"babelify": "^8.x",
"browserify": "^14.x",
"fs-extra": "^5.x",
"gulp": "^3.x",
"gulp-buffer": "0.0.x",
"gulp-clean": "^0.3.x",
"gulp-sourcemaps": "^2.6.x",
"standard": "^10.x",
"tap": "^10.x",
"standard": "^x"
"vinyl-source-stream": "^1.x"
},

@@ -15,0 +27,0 @@ "engines": {

@@ -48,2 +48,6 @@ # checkv

- [ ] browser version
- [ ] Date
- _isBefore_ : Date
- _isAfter_ : Date
- _isSameDay_ : Date compare trunc at date

@@ -50,0 +54,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