Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #30 from azuqua/sec/OKTA-393741
Browse files Browse the repository at this point in the history
OKTA-393741: Upgrade packages to fix vulns (specifically `underscore`)
  • Loading branch information
maxwellhirsch-okta authored May 6, 2021
2 parents fec6eff + 045b672 commit 8ee50be
Show file tree
Hide file tree
Showing 4 changed files with 1,437 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (grunt_) {
pkg: grunt_.file.readJSON("package.json"),

jshint: {
files: [
all: [
'Gruntfile.js',
'azuqua.js'
],
Expand All @@ -14,19 +14,19 @@ module.exports = function (grunt_) {
// Execute server-side Mocha tests using the grunt-mocha-test module.
// (Use grunt-mocha module for headless client-side testing within PhantomJS).
mochaTest: {
options: { reporter: 'spec', checkLeaks: true },
test: {
options: { reporter: 'spec', checkLeaks: true },
},
src: ['test/test.js']
}
};

grunt_.initConfig(configObject);

grunt_.loadNpmTasks("grunt-contrib-clean");
grunt_.loadNpmTasks("grunt-contrib-jshint");
grunt_.loadNpmTasks("grunt-mocha-test");

grunt_.registerTask("lint", [ "jshint" ]);
grunt_.registerTask("test", [ "mochaTest" ]);
grunt_.registerTask("default", [ "lint", "test" ]);

};
4 changes: 2 additions & 2 deletions azuqua.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ var Azuqua = function(accessKey, accessSecret, httpOptions){
}
_.extend(self.httpOptions, httpOptions);
}
Object.freeze(self.httpOptions)
Object.freeze(self.httpOptions);
self.client = new RestJS({ protocol: protocol });

self.signData = function(data, verb, path, timestamp) {
Expand Down Expand Up @@ -293,7 +293,7 @@ Azuqua.prototype.getFlos = function (_callback){
org_id : flo.org_id,
active: flo.active,
published: flo.published
})
});
}, callback);
}
});
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
},
"dependencies": {
"async": "~0.2.10",
"underscore": "~1.6.0",
"underscore": "^1.12.1",
"bluebird": "~1.1.1",
"restjs": "git://github.com/azuqua/restjs.git"
},
"devDependencies": {
"chai": "*",
"docco": "*",
"grunt": "~0.4.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-jshint": "~0.8.0",
"grunt-mocha-test": "~0.9.4"
"grunt": "^1.4.0",
"grunt-contrib-jshint": "^3.0.0",
"grunt-mocha-test": "^0.13.3",
"mocha": "^8.3.2"
},
"main": "./azuqua"
}
Loading

0 comments on commit 8ee50be

Please sign in to comment.