Skip to content

Commit 17a4805

Browse files
ClementKerneurDeviaVir
authored andcommitted
Fix os: deprecate 'tmpDir()' in favour of 'tmpdir()' nodejs/node@5e5ec2cd1e (motdotla#275)
1 parent b558c3b commit 17a4805

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Lambda.prototype._eventSourceList = function (program) {
186186
Lambda.prototype._zipfileTmpPath = function (program) {
187187
var ms_since_epoch = +new Date();
188188
var filename = program.functionName + '-' + ms_since_epoch + '.zip';
189-
var zipfile = path.join(os.tmpDir(), filename);
189+
var zipfile = path.join(os.tmpdir(), filename);
190190

191191
return zipfile;
192192
};

test/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('node-lambda', function () {
5858

5959
after(function () {
6060
_timeout({ this: this, sec: 30 }); // give it time to remove
61-
fs.removeSync(path.join(os.tmpDir(), `${program.functionName}-[0-9]*`));
61+
fs.removeSync(path.join(os.tmpdir(), `${program.functionName}-[0-9]*`));
6262
});
6363

6464
it('version should be set', function () {
@@ -494,7 +494,7 @@ describe('node-lambda', function () {
494494
});
495495

496496
describe('_readArchive', function () {
497-
const testZipFile = path.join(os.tmpDir(), 'node-lambda-test.zip');
497+
const testZipFile = path.join(os.tmpdir(), 'node-lambda-test.zip');
498498
var bufferExpected = null;
499499
before(function(done) {
500500
_timeout({ this: this, sec: 30 }); // give it time to zip

0 commit comments

Comments
 (0)