Skip to content

jsonPath conflit #18

Description

@gauravagrwl

Hello Dvdln,
Below is my package declaration,

I am trying to use both jsonpath-object-transform and jsonpath.

{
  "name": "TestRules",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "dependencies": {
    "jsonpath-object-transform": "^1.0.4",
    "jsonpath": "^1.0.0",
    "validator": "^10.4.0"
  },
  "author": "",
  "license": ""
}

Internally jsonpath-object-transform use "JSONPath": "^0.10.0"

Because of conflict of version in JSONPath and jsonpath, it throws an error at runtime.

After looking into the code of jsonpath-object-transform, a quick fix will be to modify the package.json
to include "jsonpath" updated version instead of JSONPath.

"dependencies": {
    "jsonpath": "^1.0.0",
  },

Please advice.

Regards
Gaurav

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions