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

baddsert

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baddsert - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

cli.ts

14

badd-fs.ts

@@ -40,4 +40,16 @@ 'use strict';

return asserts;
}
};
export let getAllResults = () => {
return fs.readdirSync(dir)
.reduce((prev, filename) => {
prev[filename] = JSON.parse(fs.readFileSync(join(dir, filename), 'utf-8'));
return prev;
}, {});
};
export let save = (filename, info) => {
fs.writeFileSync(join(dir, filename), JSON.stringify(info));
};
// Keeping for reasons

@@ -44,0 +56,0 @@ export class BaddFile {

export declare let getStoredResults: (fileName: string) => any;
export declare let getAllResults: () => {};
export declare let save: (filename: any, info: any) => void;
export declare class BaddFile {

@@ -3,0 +5,0 @@ asserts: any;

@@ -36,2 +36,12 @@ 'use strict';

};
exports.getAllResults = () => {
return fs.readdirSync(dir)
.reduce((prev, filename) => {
prev[filename] = JSON.parse(fs.readFileSync(path_1.join(dir, filename), 'utf-8'));
return prev;
}, {});
};
exports.save = (filename, info) => {
fs.writeFileSync(path_1.join(dir, filename), JSON.stringify(info));
};
// Keeping for reasons

@@ -38,0 +48,0 @@ class BaddFile {

6

package.json
{
"name": "baddsert",
"version": "0.0.1",
"version": "0.1.0",
"description": "Baseline Acceptance Driven Development for JavaScript",

@@ -17,2 +17,3 @@ "main": "dist/index.js",

"dependencies": {
"readline-sync": "^1.4.1",
"typescript": "^1.8.9"

@@ -22,3 +23,4 @@ },

"mocha": "^2.4.5"
}
},
"bin": "./dist/cli"
}

@@ -9,2 +9,4 @@ # baddsert

`// TODO: Real docs`
`// TODO: Real docs`
Further reading: https://medium.com/@tinganho/baseline-acceptance-driven-development-f39f7010a04#.d1fdg36x0

@@ -23,2 +23,2 @@ 'use strict';

});
});
});
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