Skip to content

Commit

Permalink
crypto: 0.0.3
Browse files Browse the repository at this point in the history
node-forge is deprecated
  • Loading branch information
davidkhala committed Feb 1, 2024
1 parent 2b60ec8 commit cd9b136
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 187 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
extension: [CSV, light,logger, main]
extension: [CSV, light,logger, main, crypto]
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -42,7 +42,6 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm config set package-lock false
- run: npm install pm2@latest -g;
- run: npm install;
- run: ./test/CLI/test.sh
Expand All @@ -64,15 +63,3 @@ jobs:
- run: npm install
- run: npm start
- run: npm test
crypto:
defaults:
run:
working-directory: crypto
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm install
- run: npm test
110 changes: 0 additions & 110 deletions crypto/forge/pki.js

This file was deleted.

6 changes: 1 addition & 5 deletions crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"name": "@davidkhala/crypto",
"version": "0.0.2",
"engines": {
"node": ">=17"
},
"version": "0.0.3",
"publishConfig": {
"access": "public"
},
Expand All @@ -15,7 +12,6 @@
"@davidkhala/light": "latest"
},
"devDependencies": {
"node-forge": "latest",
"@davidkhala/logger": "latest",
"mocha": "latest",
"@davidkhala/milagro-crypto-js": "latest"
Expand Down
10 changes: 5 additions & 5 deletions crypto/test/artifacts/csr.pem
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIBNjCB3gIBADBNMQswCQYDVQQGEwJISzEUMBIGA1UECgwLSHlwZXJsZWRnZXIx
MIIBODCB3gIBADBNMQswCQYDVQQGEwJISzEUMBIGA1UECgwLSHlwZXJsZWRnZXIx
EzARBgNVBAsMCmJsb2NrY2hhaW4xEzARBgNVBAMMCmRhdmlka2hhbGEwWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAASdcM8Br5kW835MbO1xFS9RVuGiEln9MUkKzgxY
nK9nBnyuWBClVlV4Zlii2OBeUk2Pso3DXN+Ci/su8WlHmVvAoC8wLQYJKoZIhvcN
hkjOPQIBBggqhkjOPQMBBwNCAAQN/XxpZBSVvdvjzaQxAShwAMozPVYiZHB+RK7I
tfJoqN4DqpDsn4AV7al2P3kWpUzA9O49SN7pPeQfa596x7C+oC8wLQYJKoZIhvcN
AQkOMSAwHjAcBgNVHREEFTATghEqLmh5cGVybGVkZ2VyLm9yZzAKBggqhkjOPQQD
AgNHADBEAiBaRmaIt9OgQtghKIUWjSHXAB7W4cmu5BK+7XFYBLnwtgIgWxwbNRCA
Rxs+ncGHwS5a2/jrGevQOfdqwnNn/2WmYqM=
AgNJADBGAiEAkY8HgN5vHbjM/Y5WqPhpvn9n3DnOKEhov8OqObOfUdkCIQDiiWcu
rF93qgKxW3uTvMW7oxph993FsYL2NpQUJ44Bgg==
-----END CERTIFICATE REQUEST-----
43 changes: 0 additions & 43 deletions crypto/test/forge/pki.js

This file was deleted.

4 changes: 0 additions & 4 deletions main/format.js

This file was deleted.

2 changes: 1 addition & 1 deletion main/test/formatTest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {dateFormat} from '../format.js';
import dateFormat from 'date-format';
import assert from 'assert';

describe('format test', () => {
Expand Down
9 changes: 4 additions & 5 deletions test/dateformat.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import dateFormat from 'dateformat';
import assert from 'assert';

describe('why we not choosing date format', () => {
it('different template pattern', () => {
describe('why we not choosing npm dateformat', () => {
it('case sensitive pattern', () => {
const now = new Date();

console.debug(dateFormat(now, 'YYMMDDHHMMSSZ'));
console.debug(dateFormat(now, 'yymmddhhmmssz'));
assert.notEqual(dateFormat(now, 'YYYYMMDDHHMMSS'), dateFormat(now, 'yyyymmddhhmmss'));
});
});

0 comments on commit cd9b136

Please sign in to comment.