Socket
Socket
Sign inDemoInstall

typeforce

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typeforce - npm Package Compare versions

Comparing version 1.12.0 to 1.13.0

12

extra.js

@@ -31,2 +31,13 @@ var NATIVE = require('./native')

function Range (a, b, f) {
f = f || NATIVE.Number
function _range (value, strict) {
return f(value) && (value > a) && (value < b)
}
_range.toJSON = function () {
return `${f.toJSON()} between [${a}, ${b}]`
}
return _range
}
var UINT53_MAX = Math.pow(2, 53) - 1

@@ -60,2 +71,3 @@

Int32: Int32,
Range: Range,
StringN: _StringN,

@@ -62,0 +74,0 @@ UInt8: UInt8,

2

package.json
{
"name": "typeforce",
"version": "1.12.0",
"version": "1.13.0",
"description": "Another biased type checking solution for Javascript",

@@ -5,0 +5,0 @@ "keywords": [

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