Prevent options from leaking (#1595)
The options object passed into `render` and `renderSync` is only shallow copied. This is an issue when nested objects and arrays like custom importer and functions. In the case of custom function we wrap the provided function. This wrapped version replaces the provided one which can then leak back into the calling code. This is an issue if `render*` is called in a loop like in gulp-sass. Fixes #1168
Showing
| ... | @@ -58,8 +58,9 @@ | ... | @@ -58,8 +58,9 @@ |
| "gaze": "^1.0.0", | "gaze": "^1.0.0", | ||
| "get-stdin": "^4.0.1", | "get-stdin": "^4.0.1", | ||
| "glob": "^7.0.3", | "glob": "^7.0.3", | ||
| "meow": "^3.7.0", | |||
| "in-publish": "^2.0.0", | "in-publish": "^2.0.0", | ||
| "lodash.clonedeep": "^4.3.2", | |||
| "meow": "^3.7.0", | |||
| "mkdirp": "^0.5.1", | "mkdirp": "^0.5.1", | ||
| "nan": "^2.3.2", | "nan": "^2.3.2", | ||
| "node-gyp": "^3.3.1", | "node-gyp": "^3.3.1", | ||
| ... | ... |
Please
register
or
sign in
to comment