Comparing version 0.1.1 to 1.0.0
126
Gruntfile.js
@@ -1,63 +0,85 @@ | ||
'use strict'; | ||
/*global module*/ | ||
(function setUp(module) { | ||
'use strict'; | ||
module.exports = function(grunt) { | ||
module.exports = function exportingFunction(grunt) { | ||
var banner = ['/*!', | ||
' * Twofish (ECB and CBC) javascript implementation v<%= pkg.version %>', | ||
' *', | ||
' * Released under the MIT license', | ||
' * www.opensource.org/licenses/MIT', | ||
' *', | ||
' * <%= grunt.template.today("yyyy-mm-dd") %>', | ||
' */\n\n' | ||
].join('\n'); | ||
var banner = ['/*!', | ||
' * Twofish (ECB and CBC) javascript implementation v<%= pkg.version %>', | ||
' *', | ||
' * Released under the MIT license', | ||
' * www.opensource.org/licenses/MIT', | ||
' *', | ||
' * <%= grunt.template.today("yyyy-mm-dd") %>', | ||
' */\n\n' | ||
].join('\n'); | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
grunt.initConfig({ | ||
'pkg': grunt.file.readJSON('package.json'), | ||
'confs': { | ||
'dist': 'dist', | ||
'config': 'config', | ||
'src': 'src', | ||
'spec': 'spec' | ||
}, | ||
gruntfile: { | ||
src: 'Gruntfile.js' | ||
}, | ||
lib: { | ||
src: [ | ||
'2-fish.js' | ||
'eslint': { | ||
'options': { | ||
'config': '<%= confs.config %>/eslint.json' | ||
}, | ||
'target': [ | ||
'Gruntfile.js', | ||
'<%= confs.src %>/**/*.js', | ||
'<%= confs.spec %>/**/*.js' | ||
] | ||
}, | ||
test: { | ||
src: ['spec/**/*.js'] | ||
} | ||
}, | ||
jasmine : { | ||
src : '2-fish.js', | ||
options : { | ||
specs : 'spec/**/*.js' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
report: 'gzip', | ||
banner: banner | ||
'uglify': { | ||
'options': { | ||
'sourceMap': true, | ||
'preserveComments': false, | ||
'report': 'gzip', | ||
'banner': banner | ||
}, | ||
'minifyTarget': { | ||
'files': { | ||
'<%= confs.dist %>/<%= pkg.name %>.min.js': [ | ||
'<%= confs.src %>/<%= pkg.name %>.js' | ||
] | ||
} | ||
} | ||
}, | ||
minifyTarget: { | ||
files: { | ||
'dist/2-fish.min.js': ['2-fish.js'] | ||
'jasmine': { | ||
'ecb': { | ||
'src': '<%= confs.src %>/<%= pkg.name %>.js', | ||
'options': { | ||
'specs': '<%= confs.spec %>/**/ecb-*.js' | ||
} | ||
}, | ||
'cbc': { | ||
'src': '<%= confs.src %>/<%= pkg.name %>.js', | ||
'options': { | ||
'specs': '<%= confs.spec %>/**/cbc-*.js' | ||
} | ||
} | ||
} | ||
} | ||
}); | ||
}); | ||
// NPM Tasks | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-jasmine'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-eslint'); | ||
// Default tasks (when type grunt on terminal). | ||
grunt.registerTask('default', [ | ||
'jshint', | ||
'jasmine', | ||
'uglify' | ||
]); | ||
}; | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-jasmine'); | ||
grunt.registerTask('default', [ | ||
'eslint' | ||
]); | ||
grunt.registerTask('test', [ | ||
'eslint', | ||
'jasmine' | ||
]); | ||
grunt.registerTask('prod', [ | ||
'eslint', | ||
'uglify' | ||
]); | ||
}; | ||
}(module)); |
{ | ||
"name": "twofish", | ||
"version": "0.1.1", | ||
"version": "1.0.0", | ||
"description": "Javascript Twofish implementation.", | ||
@@ -18,6 +18,6 @@ "homepage": "https://github.com/wouldgo/twofish", | ||
"devDependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-jshint": "~0.6.0", | ||
"grunt-contrib-jasmine": "~0.5.2", | ||
"grunt-contrib-uglify": "~0.2.4" | ||
"grunt": "*", | ||
"grunt-contrib-uglify": "*", | ||
"grunt-contrib-jasmine": "*", | ||
"grunt-eslint": "*" | ||
}, | ||
@@ -24,0 +24,0 @@ "author": { |
@@ -1,4 +0,6 @@ | ||
twofish | ||
Two Fish | ||
======= | ||
Twofish (ECB and CBC) javascript implementation | ||
Twofish (ECB and CBC) javascript implementation. | ||
References to https://www.schneier.com/twofish.html |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
412581
19
6322
0
7
1