diff --git a/functions/feed.js b/functions/feed.js index d7ddd1f..4845e90 100644 --- a/functions/feed.js +++ b/functions/feed.js @@ -1,4 +1,4 @@ -const GBFS = require('../gbfs-validator/gbfs') +const GBFS = require('gbfs-validator'); const { defaultApplicationResponseHeaders, getCorsResponse } = require('../common/http-utils'); exports.handler = function (event, context, callback) { diff --git a/functions/package.json b/functions/package.json index 6d83744..d76a94b 100644 --- a/functions/package.json +++ b/functions/package.json @@ -7,6 +7,6 @@ "test": "echo \"Error: no test specified\" && exit 0" }, "dependencies": { - "gbfs-validator": "1.0.0" + "gbfs-validator": "file:../gbfs-validator" } } diff --git a/functions/validator.js b/functions/validator.js index 2a7c3c1..2ca6bc8 100644 --- a/functions/validator.js +++ b/functions/validator.js @@ -1,4 +1,4 @@ -const GBFS = require('../gbfs-validator/gbfs') +const GBFS = require('gbfs-validator'); const { defaultApplicationResponseHeaders, getCorsResponse } = require('../common/http-utils'); exports.handler = function (event, context, callback) { diff --git a/yarn.lock b/yarn.lock index cf1922d..12ced3f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6051,6 +6051,17 @@ gauge@^3.0.0: strip-ansi "^6.0.1" wide-align "^1.1.2" +"gbfs-validator@file:gbfs-validator": + version "1.0.7" + dependencies: + ajv "^8.9.0" + ajv-errors "^3.0.0" + ajv-formats "^2.1.1" + commander "^11.0.0" + fast-json-patch "^3.1.0" + got "^11.8.2" + json-merge-patch "^1.0.2" + gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"