Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ jobs:
node-version: 20.x

- name: Install tools
run: npm install --location=global bslint
run: npm install --location=global bslint typescript

- name: Install dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Lint types
run: npm run lint-types

general:
name: Javascript & Bigint
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions lib/aes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

'use strict';

let AES;

if (process.env.NODE_BACKEND === 'js')
module.exports = require('./js/aes');
AES = require('./js/aes');
else
module.exports = require('./native/aes');
AES = require('./native/aes');

module.exports = AES;
Loading