Skip to content

Commit

Permalink
Add dev dependencies to package-libsodium-wrappers.json
Browse files Browse the repository at this point in the history
Don't have libsodium-wrappers depend on a specific version of libsodium.

Compiling it when its dependencies include versions that haven't been
pushed to npm is complicated.
  • Loading branch information
jedisct1 committed Aug 4, 2020
1 parent 0dc387a commit eb8df97
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package-libsodium-sumo.json
@@ -1,6 +1,6 @@
{
"name": "libsodium-sumo",
"version": "0.7.7",
"version": "0.7.8",
"description": "The Sodium cryptographic library compiled to pure JavaScript (raw library, no wrappers, sumo variant)",
"main": "dist/modules-sumo/libsodium-sumo.js",
"files": [
Expand Down
14 changes: 12 additions & 2 deletions package-libsodium-wrappers-sumo.json
@@ -1,6 +1,6 @@
{
"name": "libsodium-wrappers-sumo",
"version": "0.7.7",
"version": "0.7.8",
"description": "The Sodium cryptographic library compiled to pure JavaScript (wrappers, sumo variant)",
"main": "dist/modules-sumo/libsodium-wrappers.js",
"files": [
Expand All @@ -12,7 +12,14 @@
"url": "https://github.com/jedisct1/libsodium.js.git"
},
"dependencies": {
"libsodium-sumo": "0.7.7"
"libsodium-sumo": "^0.7.0"
},
"devDependencies": {
"assert": "^2.0.0",
"chai": "^4.2.0",
"mocha": "^8.0.1",
"terser": "^5.0.0",
"libsodium": "^0.7.0"
},
"keywords": [
"crypto",
Expand All @@ -28,6 +35,9 @@
"argon2",
"ecc"
],
"scripts": {
"test": "mocha"
},
"author": "Ahmad Ben Mrad (@BatikhSouri)",
"contributors": [
"Frank Denis (@jedisct1)",
Expand Down
16 changes: 13 additions & 3 deletions package-libsodium-wrappers.json
@@ -1,6 +1,6 @@
{
"name": "libsodium-wrappers",
"version": "0.7.7",
"version": "0.7.8",
"description": "The Sodium cryptographic library compiled to pure JavaScript (wrappers)",
"main": "dist/modules/libsodium-wrappers.js",
"files": [
Expand All @@ -12,7 +12,14 @@
"url": "https://github.com/jedisct1/libsodium.js.git"
},
"dependencies": {
"libsodium": "0.7.7"
"libsodium": "^0.7.0"
},
"devDependencies": {
"assert": "^2.0.0",
"chai": "^4.2.0",
"mocha": "^8.0.1",
"terser": "^5.0.0",
"libsodium": "^0.7.0"
},
"keywords": [
"crypto",
Expand All @@ -28,6 +35,9 @@
"argon2",
"ecc"
],
"scripts": {
"test": "mocha"
},
"author": "Ahmad Ben Mrad (@BatikhSouri)",
"contributors": [
"Frank Denis (@jedisct1)",
Expand All @@ -41,4 +51,4 @@
"browser": {
"fs": false
}
}
}
2 changes: 1 addition & 1 deletion package-libsodium.json
@@ -1,6 +1,6 @@
{
"name": "libsodium",
"version": "0.7.7",
"version": "0.7.8",
"description": "The Sodium cryptographic library compiled to pure JavaScript (raw library, no wrappers)",
"main": "dist/modules/libsodium.js",
"files": [
Expand Down
16 changes: 13 additions & 3 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "libsodium-wrappers",
"version": "0.7.7",
"version": "0.7.8",
"description": "The Sodium cryptographic library compiled to pure JavaScript (wrappers)",
"main": "dist/modules/libsodium-wrappers.js",
"files": [
Expand All @@ -12,7 +12,14 @@
"url": "https://github.com/jedisct1/libsodium.js.git"
},
"dependencies": {
"libsodium": "0.7.7"
"libsodium": "^0.7.0"
},
"devDependencies": {
"assert": "^2.0.0",
"chai": "^4.2.0",
"mocha": "^8.0.1",
"terser": "^5.0.0",
"libsodium": "^0.7.0"
},
"keywords": [
"crypto",
Expand All @@ -28,6 +35,9 @@
"argon2",
"ecc"
],
"scripts": {
"test": "mocha"
},
"author": "Ahmad Ben Mrad (@BatikhSouri)",
"contributors": [
"Frank Denis (@jedisct1)",
Expand All @@ -41,4 +51,4 @@
"browser": {
"fs": false
}
}
}

0 comments on commit eb8df97

Please sign in to comment.