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

dynalite

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynalite - npm Package Compare versions

Comparing version 0.17.3 to 0.17.4

14

package.json
{
"name": "dynalite",
"version": "0.17.3",
"version": "0.17.4",
"description": "An implementation of Amazon's DynamoDB built on LevelDB",

@@ -28,6 +28,6 @@ "main": "index.js",

"lazy": "^1.0.11",
"level-sublevel": "^6.5.2",
"level-sublevel": "^6.5.4",
"levelup": "^1.3.1",
"lock": "^0.1.2",
"memdown": "^1.1.1",
"memdown": "^1.1.2",
"minimist": "^1.2.0",

@@ -37,10 +37,10 @@ "once": "^1.3.3"

"optionalDependencies": {
"leveldown": "^1.4.3"
"leveldown": "^1.4.4"
},
"devDependencies": {
"aws4": "^1.2.1",
"aws4": "^1.3.2",
"istanbul": "^0.4.2",
"mocha": "^2.3.4",
"should": "^8.1.1"
"mocha": "^2.4.5",
"should": "^8.2.2"
}
}

@@ -33,8 +33,2 @@ var Big = require('big.js')

function classForNumber(val) {
return val % 1 !== 0 ? 'java.lang.Double' :
val >= -32768 && val <= 32767 ? 'java.lang.Short' :
val >= -2147483648 && val <= 2147483647 ? 'java.lang.Integer' : 'java.lang.Long'
}
function checkType(val, type) {

@@ -81,8 +75,3 @@ if (val == null) return null

case 'number':
// Strangely floats seem to be fine...?
var numClass = classForNumber(val)
if (numClass != 'java.lang.Double')
throw typeError('class ' + numClass + ' can not be converted to an Boolean')
val = Math.abs(val) >= 1
break
throw typeError('class com.amazon.coral.value.json.numbers.TruncatingBigNumber can not be converted to an Boolean')
case 'string':

@@ -121,3 +110,3 @@ // "\'HELLOWTF\' can not be converted to an Boolean"

case 'number':
throw typeError('class ' + classForNumber(val) + ' can not be converted to an String')
throw typeError('class com.amazon.coral.value.json.numbers.TruncatingBigNumber can not be converted to an String')
case 'object':

@@ -133,3 +122,3 @@ if (Array.isArray(val)) throw typeError('Start of list found where not expected')

case 'number':
throw typeError('class ' + classForNumber(val) + ' can not be converted to a Blob')
throw typeError('class com.amazon.coral.value.json.numbers.TruncatingBigNumber can not be converted to a Blob')
case 'object':

@@ -136,0 +125,0 @@ if (Array.isArray(val)) throw typeError('Start of list found where not expected')

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