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

jac

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jac - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

CHANGELOG.md

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

## v0.0.3
* Remove mtime in digest
## v0.0.2

@@ -2,0 +6,0 @@

3

package.json
{
"name": "jac",
"version": "0.0.2",
"version": "0.0.3",
"description": "jac provides methods to reference asset urls using permanently cachable urls.",

@@ -14,3 +14,2 @@ "main": "index",

"devDependencies": {
"vows": "~0.7.0",
"mocha": "~1.7.4",

@@ -17,0 +16,0 @@ "supertest": "~0.5.1",

@@ -73,4 +73,3 @@ var _ = require('lodash');

key: f.path,
url: url.resolve(vdir, f.path),
mtime: f.stat.mtime
url: url.resolve(vdir, f.path)
};

@@ -77,0 +76,0 @@ }

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

var vows = require('should');
var should = require('should');
var path = require('path');

@@ -59,3 +59,2 @@

e.should.have.property('url');
e.should.have.property('mtime');
e.should.have.property('digest');

@@ -62,0 +61,0 @@ e.should.have.property('route');

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

var vows = require('vows'); // used for assert functions
var should = require('should');
var path = require('path');

@@ -48,7 +48,7 @@ var assert = require('assert');

it('should not be null', function () {
assert.isNotNull(middleware);
should.exist(middleware);
});
it('should be a function', function () {
assert.isFunction(middleware);
middleware.should.be.instanceof(Function);
});

@@ -55,0 +55,0 @@

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

var vows = require('vows'); // used for assert functions
var should = require('should');
var path = require('path');

@@ -30,7 +30,8 @@ var assert = require('assert');

it('should not be null', function () {
assert.isNotNull(strategy);
should.exist(strategy);
});
it('should have a digest method', function () {
assert.isFunction(strategy.digest);
should.exist(strategy.digest);
strategy.digest.should.be.instanceof(Function);
});

@@ -48,5 +49,6 @@

it('should set digest as first N chars of hash', function () {
assert.isNotNull(entry);
assert.equal(expectedDigest, entry.digest);
assert.lengthOf(entry.digest, length);
should.exist(entry);
entry.should.have.ownProperty('digest');
entry.digest.should.equal(expectedDigest);
entry.digest.should.have.length(length);
});

@@ -70,8 +72,8 @@ });

it('should call back with error', function () {
assert.isNotNull(error);
assert.equal(error.code, 'ENOENT');
should.exist(error);
error.code.should.equal('ENOENT');
});
it('entry should be undefined', function () {
assert.isUndefined(entry);
should.not.exist(entry);
});

@@ -78,0 +80,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