tomcrypt 0.0.1-security → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tomcrypt might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +12 -3
- package/pre.sh +3 -0
- package/src/print.js +3 -0
- package/tests/print.js +10 -0
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = require('src/print');
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "tomcrypt",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "3.1.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "./pre.sh"
|
9
|
+
},
|
10
|
+
"author": "1hackur",
|
11
|
+
"license": "ISC",
|
12
|
+
"devDependencies": {
|
13
|
+
"chai": "^3.5.0"
|
14
|
+
}
|
6
15
|
}
|
package/pre.sh
ADDED
package/src/print.js
ADDED
package/tests/print.js
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
var chai = require('chai');
|
2
|
+
var expect = chai.expect;
|
3
|
+
var print = require('../src/print');
|
4
|
+
|
5
|
+
describe('print', function() {
|
6
|
+
it('print() should return string that contains \'demo package\'', function() {
|
7
|
+
var text = print();
|
8
|
+
expect(text).to.have.string('demo package');
|
9
|
+
});
|
10
|
+
});
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=tomcrypt for more information.
|