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

srcy

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srcy - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

bin/args.js

@@ -18,4 +18,6 @@ 'use strict';

}
} else {
return false;
}
})();
# Srcy Change log
## 17 October 2013, 0.0.3
* More elegant exit on success with message.
* srcy tests can now be run with "srcy" from npm run-script or the command line.
## 17 October 2013, 0.0.2

@@ -4,0 +8,0 @@ * Better checking of ignored resources (check at folder level as well as file)

14

lib/check.js
'use strict';
var feedback = require('./feedback'),
itterate = require('./itterate');
itterate = require('./itterate'),
log = require('./log');
module.exports = function (imgs, refs) {
var matched = {};
var matched = {},
errors;

@@ -21,4 +23,10 @@ itterate(refs, function (val, ref) {

return (Object.keys(refs).length);
errors = Object.keys(refs).length;
if (!errors && !Object.keys(imgs).length) {
log.success('no issues found');
}
return (errors);
};
{
"name": "srcy",
"description": "Check project image paths for missing or redundant images",
"version": "0.0.2",
"version": "0.0.3",
"keywords": ["images", "paths", "assets", "test", "build"],

@@ -6,0 +6,0 @@ "author": {

@@ -36,6 +36,14 @@ # Srcy [![Build Status](https://secure.travis-ci.org/mattyod/srcy.png?branch=master)](http://travis-ci.org/mattyod/srcy)

"scripts": {
srcy": "node node_modules/srcy/srcy.js"
"srcy": "node node_modules/srcy/srcy.js"
}
```
Or if you have Srcy installed globally on your test environment you can use:
```
"scripts": {
"srcy": "srcy"
}
```
## Configuration

@@ -42,0 +50,0 @@

'use strict';
var check = require('../../lib/check.js'),
feedback = require('../../lib/feedback');
feedback = require('../../lib/feedback'),
log = require('../../lib/log');

@@ -29,2 +30,4 @@ describe('check', sandbox(function () {

this.stub(log, 'success');
this.stub(feedback, 'show');

@@ -39,2 +42,6 @@ });

it('logs a success message', function () {
log.success.should.have.been.calledOnce;
});
it('passes two empty objects to feedback', function () {

@@ -41,0 +48,0 @@ feedback.show.args[0].should.deep.equal([ {}, {} ]);

Sorry, the diff of this file is not supported yet

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