Skip to content

Bug in dependency class-validator@0.14.0 #1247

@MelanieW97

Description

@MelanieW97

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch javascript-obfuscator@4.1.0 for the project I'm working on.

The version 0.14.0 of class-validator causes an error for me.
According to a post I found on GitHub, it's a bug in class-validator which is being fixed in version 0.14.1.
You can read about it right here: typestack/class-validator#2370 (comment)

Here is the diff that solved my problem:

diff --git a/node_modules/javascript-obfuscator/package.json b/node_modules/javascript-obfuscator/package.json
index f629417..a563577 100644
--- a/node_modules/javascript-obfuscator/package.json
+++ b/node_modules/javascript-obfuscator/package.json
@@ -27,7 +27,7 @@
     "assert": "2.0.0",
     "chalk": "4.1.2",
     "chance": "1.1.9",
-    "class-validator": "0.14.0",
+    "class-validator": "0.14.1",
     "commander": "10.0.0",
     "eslint-scope": "7.1.1",
     "eslint-visitor-keys": "3.3.0",

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions