File: dont-try-to-access-to-__proto__.patch

package info (click to toggle)
node-rollup-plugin-typescript2 0.34.1%2Bds%2B~cs6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,032 kB
  • sloc: javascript: 1,211; sh: 4; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: don't try to access to __proto__
Author: Yadd <yadd@debian.org>
Forwarded: no
Last-Update: 2022-12-04

--- a/object-hash/index.js
+++ b/object-hash/index.js
@@ -247,7 +247,7 @@
         return keys.forEach(function(key){
           self.dispatch(key);
           write(':');
-          if(!options.excludeValues) {
+          if(!options.excludeValues && key != '__proto__') {
             self.dispatch(object[key]);
           }
           write(',');