Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add "use strict".

Clean up require() lines too.
  • Loading branch information...
commit f6fe5e97f775b424b539b02e95bf4575b2bdc90b 1 parent e61def1
Dan Bornstein authored
6 lib/ursa.js
View
@@ -8,12 +8,14 @@
* Modules used
*/
+"use strict";
+
// Note: This also forces OpenSSL to be initialized, which is important!
var crypto = require("crypto");
var ursaNative = require("../bin/ursaNative");
-var RsaWrap = ursaNative.RsaWrap;
-var textToNid = ursaNative.textToNid;
+var RsaWrap = ursaNative.RsaWrap;
+var textToNid = ursaNative.textToNid;
/*
2  package.json
View
@@ -1,6 +1,6 @@
{
"name": "ursa",
- "version": "0.6.1",
+ "version": "0.6.2",
"keywords": [
"crypto", "key", "openssl", "private", "public", "rsa", "sign",
"signature", "verify", "verification", "hash", "digest"
6 test/fixture.js
View
@@ -8,9 +8,11 @@
* Modules used
*/
-var fs = require("fs");
+"use strict";
-var ursa = require("../lib/ursa");
+var fs = require("fs");
+
+var ursa = require("../lib/ursa");
var ursaNative = require("../bin/ursaNative");
6 test/native.js
View
@@ -8,10 +8,12 @@
* Modules used
*/
+"use strict";
+
var assert = require("assert");
-var fixture = require("./fixture");
-var RsaWrap = fixture.RsaWrap;
+var fixture = require("./fixture");
+var RsaWrap = fixture.RsaWrap;
var textToNid = fixture.ursaNative.textToNid;
4 test/test.js
View
@@ -8,10 +8,12 @@
* Modules used
*/
+"use strict";
+
var assert = require("assert");
var fixture = require("./fixture");
-var ursa = fixture.ursa;
+var ursa = fixture.ursa;
/*
Please sign in to comment.
Something went wrong with that request. Please try again.