Skip to content

Commit

Permalink
fix: 📌 rollback upgrade versão Ajv
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimsn committed Mar 16, 2021
1 parent 381ffcf commit 805c645
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
3 changes: 2 additions & 1 deletion datalayer-validation-core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const schemaParser = require('./schema-parser');
const Ajv = require('ajv').default;
const Ajv = require('ajv');
const debugging = process.env.PENGUIN_DEBUGGING || false;
let fullValidation = [];

Expand Down Expand Up @@ -277,6 +277,7 @@ function checkMissingEvents(schemaItem, dataLayer) {
* @param {*} callback Função que será executada após o sucesso da validação, como parâmetro um array com o status das validações
*/
let validate = (schema, dataLayer, callback) => {
fullValidation = [];
let schemaItem = schema.array.items;
let isSchemaEmpty = schemaItem.length === 0;
let isObjEmpty = Object.entries(dataLayer).length === 0 && dataLayer.constructor === Object;
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"branch": "master"
},
"dependencies": {
"ajv": "^7.2.1"
"ajv": "^6.12.6"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand Down

0 comments on commit 805c645

Please sign in to comment.