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

ref

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ref - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

6

History.md
1.1.3 / 2015-09-23
==================
* appveyor: remove v1
* speed increase by avoiding `JSON.stringify()` constant call (#39, @dan-tull)
1.1.2 / 2015-09-19

@@ -3,0 +9,0 @@ ==================

10

lib/ref.js

@@ -382,4 +382,5 @@

if (refCount > 0) {
assert(rtn && 'size' in rtn && 'indirection' in rtn
, 'could not determine a proper "type" from: ' + JSON.stringify(type))
if (!(rtn && 'size' in rtn && 'indirection' in rtn)) {
throw new TypeError('could not determine a proper "type" from: ' + JSON.stringify(type))
}
for (var i = 0; i < refCount; i++) {

@@ -391,4 +392,5 @@ rtn = exports.refType(rtn)

}
assert(rtn && 'size' in rtn && 'indirection' in rtn
, 'could not determine a proper "type" from: ' + JSON.stringify(type))
if (!(rtn && 'size' in rtn && 'indirection' in rtn)) {
throw new TypeError('could not determine a proper "type" from: ' + JSON.stringify(type))
}
return rtn

@@ -395,0 +397,0 @@ }

2

package.json

@@ -20,3 +20,3 @@ {

],
"version": "1.1.2",
"version": "1.1.3",
"license": "MIT",

@@ -23,0 +23,0 @@ "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)",

@@ -42,2 +42,8 @@

it('should throw a TypeError if a "type" can not be inferred', function () {
assert.throws(function () {
ref.coerceType({ })
}, /could not determine a proper \"type\"/)
})
})

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