This repository has been archived by the owner on May 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert to org standards * Remove safer-buffer dependency * Configure pnpm * Move and clean up writer tests * Move and clean up reader tests * Add more test scripts * Update package.json * Fix test glob pattern * Project details cleanup * Update CI config * Use reusable workflow * Bump to initial version
- Loading branch information
Showing
19 changed files
with
843 additions
and
1,037 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
{ | ||
"plugins": [ "joyent" ], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:joyent/style", | ||
"plugin:joyent/lint" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 5, | ||
"sourceType": "script", | ||
"ecmaFeatures": { | ||
} | ||
}, | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
} | ||
"standard" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/build | ||
/coverage | ||
/node_modules | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# npm general settings | ||
|
||
# pnpm specific settings | ||
hoist=false | ||
public-hoist-pattern[]=*eslint* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
check-coverage: false | ||
|
||
files: | ||
- 'lib/**/*.test.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
// Copyright 2011 Mark Cavage <[email protected]> All rights reserved. | ||
|
||
|
||
module.exports = { | ||
|
||
newInvalidAsn1Error: function (msg) { | ||
var e = new Error(); | ||
e.name = 'InvalidAsn1Error'; | ||
e.message = msg || ''; | ||
return e; | ||
const e = new Error() | ||
e.name = 'InvalidAsn1Error' | ||
e.message = msg || '' | ||
return e | ||
} | ||
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// Copyright 2011 Mark Cavage <[email protected]> All rights reserved. | ||
|
||
var errors = require('./errors'); | ||
var types = require('./types'); | ||
|
||
var Reader = require('./reader'); | ||
var Writer = require('./writer'); | ||
const errors = require('./errors') | ||
const types = require('./types') | ||
|
||
const Reader = require('./reader') | ||
const Writer = require('./writer') | ||
|
||
// --- Exports | ||
|
||
|
@@ -15,15 +14,11 @@ module.exports = { | |
|
||
Writer: Writer | ||
|
||
}; | ||
} | ||
|
||
for (var t in types) { | ||
if (Object.prototype.hasOwnProperty.call(types, t)) { | ||
module.exports[t] = types[t]; | ||
} | ||
for (const t in types) { | ||
if (Object.prototype.hasOwnProperty.call(types, t)) { module.exports[t] = types[t] } | ||
} | ||
for (var e in errors) { | ||
if (Object.prototype.hasOwnProperty.call(errors, e)) { | ||
module.exports[e] = errors[e]; | ||
} | ||
for (const e in errors) { | ||
if (Object.prototype.hasOwnProperty.call(errors, e)) { module.exports[e] = errors[e] } | ||
} |
Oops, something went wrong.