New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

halson

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

halson - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

5

index.js

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

exports.parse = require('./parse');
var parse = require('./parse');
exports.parse = parse.parse;
exports.ParsedResource = parse.ParsedResource;
exports.Resource = require('./resource');

2

package.json
{
"name": "halson",
"version": "1.0.4",
"version": "1.0.5",
"description": "Fault-tolerant HAL+JSON parser and writer",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,2 +8,4 @@

ParsedResource.prototype.className = "HALSONParsedResource";
ParsedResource.prototype._parse = function(list) {

@@ -85,2 +87,3 @@ var data = this.data[list] || {};

module.exports = parse;
exports.parse = parse;
exports.ParsedResource = ParsedResource;

@@ -6,2 +6,8 @@ var assert = require('assert');

describe('constructor', function(){
it('should have a className', function() {
var res = new hal.Resource();
assert.ok(res.className);
assert.equal(res.className, hal.Resource.prototype.className);
});
it('should construct an empty Resource', function() {

@@ -288,2 +294,10 @@ var res = new hal.Resource();

describe('ParsedResource', function() {
it('should have a className', function() {
var res = new hal.parse(data);
assert.ok(res.className);
assert.equal(res.className, hal.ParsedResource.prototype.className);
});
});
describe('_links', function(){

@@ -290,0 +304,0 @@ it('link()', function(){

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