Skip to content

Commit

Permalink
Merge pull request #355 from bcgov/test-RQ-FOIMOD-3463
Browse files Browse the repository at this point in the history
build issue on openshift
  • Loading branch information
richard-aot authored Sep 17, 2024
2 parents 958556f + 3104ac8 commit bbb11b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/apiCaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var wav = require('wav');
var text2wav = require('text2wav');
var arrayBufferToBuffer = require('arraybuffer-to-buffer');
var streamifier = require('streamifier');
var lame = require('lame');
var lame = require('lamejs');

function captchaInit(options) {

Expand Down Expand Up @@ -156,7 +156,7 @@ function captchaInit(options) {
// we have to wait for the "format" event before we can start encoding
reader.on('format', function(format) {
// init encoder
var encoder = new lame.Encoder(format);
var encoder = new lame.Mp3Encoder(format);

// Pipe Wav reader to the encoder and capture the output stream
// As the stream is encoded, convert the mp3 array buffer chunks into base64 string with mime type
Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dotenv": "^6.2.0",
"jsonwebtoken": "^8.5.0",
"jwks-rsa": "^1.7.0",
"lame": "^1.2.4",
"lamejs": "^1.2.1",
"streamifier": "^0.1.1",
"svg-captcha": "^1.3.12",
"text2wav": "0.0.13",
Expand Down
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.4",
"sass": "",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.2.2"
Expand Down

0 comments on commit bbb11b8

Please sign in to comment.