diff --git a/README.md b/README.md index d47e441..ffddabd 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,8 @@ npm install simpl-schema There are other NPM packages named `simpleschema` and `simple-schema`. Make sure you install the right package. There is no "e" on "simpl". +NOTE: You may also need to load the `babel-polyfill` package if you get any errors related to missing ES6 functions in certain browsers. + ## Lingo In this documentation: diff --git a/lib/SimpleSchema.js b/lib/SimpleSchema.js index 71ac816..20d25b5 100644 --- a/lib/SimpleSchema.js +++ b/lib/SimpleSchema.js @@ -678,7 +678,6 @@ function checkSchemaOverlap(schema) { _.each(schema, (val, key) => { _.each(val.type.definitions, (def) => { if (!(def.type instanceof SimpleSchema)) return; - console.log(key, def.type); _.each(def.type._schema, (subVal, subKey) => { const newKey = `${key}.${subKey}`; diff --git a/lib/main.js b/lib/main.js index 7faba6c..af55be3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1,4 +1,3 @@ -import 'babel-polyfill'; import { SimpleSchema, ValidationContext } from './SimpleSchema'; import './clean.js'; diff --git a/package.json b/package.json index 26ec9f4..6bc8d21 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "test:watch": "npm test -- --watch" }, "dependencies": { - "babel-polyfill": "^6.9.1", "clone": "^1.0.2", "message-box": "0.0.1", "mongo-object": "0.0.1",