Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Commit

Permalink
map forge to node-forge namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankred Hase committed Sep 19, 2013
1 parent bf67dad commit 0af0fae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/aes-cbc.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

if (typeof define !== 'undefined' && define.amd) {
// AMD
define(['forge'], function(forge) {
define(['node-forge'], function(forge) {
return new AesCBC(forge);
});
} else if (typeof module !== 'undefined' && module.exports) {
Expand Down
2 changes: 1 addition & 1 deletion src/rsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

if (typeof define !== 'undefined' && define.amd) {
// AMD
define(['forge', 'cryptoLib/util', 'js/app-config'], function(forge, util, app) {
define(['node-forge', 'cryptoLib/util', 'js/app-config'], function(forge, util, app) {
return new RSA(forge, util, app);
});
} else if (typeof module !== 'undefined' && module.exports) {
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@

if (typeof define !== 'undefined' && define.amd) {
// AMD
define(['uuid', 'forge'], function(uuid, forge) {
define(['uuid', 'node-forge'], function(uuid, forge) {
return new Util(forge, uuid, undefined);
});
} else if (typeof module !== 'undefined' && module.exports) {
Expand Down
3 changes: 2 additions & 1 deletion test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ require.config({
cryptoLib: '../../src',
js: '../',
test: '../',
underscore: 'underscore-min'
underscore: 'underscore-min',
'node-forge': 'forge'
},
shim: {
underscore: {
Expand Down

0 comments on commit 0af0fae

Please sign in to comment.