Skip to content

Commit

Permalink
refactor: remove extend module, replace with Object.assign (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed May 16, 2022
1 parent a89b174 commit 90d5169
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -211,7 +211,6 @@
"chalk": "^4.1.2",
"cuid": "^2.1.8",
"execa": "^5.1.1",
"extend": "^3.0.2",
"fs-extra": "^10.1.0",
"java-invoke-local": "0.0.6",
"js-string-escape": "^1.0.1",
Expand Down Expand Up @@ -251,7 +250,7 @@
"jest": "^26.6.3",
"lint-staged": "^11.2.6",
"p-map": "^4.0.0",
"prettier": "^2.6.0",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"serverless": "^2.72.3",
"standard-version": "^9.3.2"
Expand Down
4 changes: 2 additions & 2 deletions src/lambda/handler-runner/python-runner/PythonRunner.js
@@ -1,11 +1,11 @@
import { EOL, platform } from 'os'
import { delimiter, join, relative, resolve } from 'path'
import { spawn } from 'child_process'
import extend from 'extend'
import readline from 'readline'

const { parse, stringify } = JSON
const { cwd } = process
const { assign } = Object
const { has } = Reflect

export default class PythonRunner {
Expand Down Expand Up @@ -51,7 +51,7 @@ export default class PythonRunner {
this.#handlerName,
],
{
env: extend(process.env, this.#env),
env: assign(process.env, this.#env),
shell: true,
},
)
Expand Down

0 comments on commit 90d5169

Please sign in to comment.