Skip to content

Commit

Permalink
functions linked to local gbfs-validator package
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro100 committed Apr 12, 2024
1 parent 54227fc commit 106eece
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion functions/feed.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"test": "echo \"Error: no test specified\" && exit 0"
},
"dependencies": {
"gbfs-validator": "1.0.0"
"gbfs-validator": "file:../gbfs-validator"
}
}
2 changes: 1 addition & 1 deletion functions/validator.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
11 changes: 11 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 106eece

Please sign in to comment.