diff --git a/package/.eslintignore b/.eslintignore similarity index 100% rename from package/.eslintignore rename to .eslintignore diff --git a/.gitignore b/.gitignore index 20c69e4..0ba8c98 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ dist node_modules npm-debug.log .idea +LICENSE +README.md diff --git a/package/.nvmrc b/.nvmrc similarity index 100% rename from package/.nvmrc rename to .nvmrc diff --git a/package/lib/SimpleSchema.js b/lib/SimpleSchema.js similarity index 100% rename from package/lib/SimpleSchema.js rename to lib/SimpleSchema.js diff --git a/package/lib/SimpleSchema.tests.js b/lib/SimpleSchema.tests.js similarity index 100% rename from package/lib/SimpleSchema.tests.js rename to lib/SimpleSchema.tests.js diff --git a/package/lib/SimpleSchemaGroup.js b/lib/SimpleSchemaGroup.js similarity index 100% rename from package/lib/SimpleSchemaGroup.js rename to lib/SimpleSchemaGroup.js diff --git a/package/lib/SimpleSchema_allowedValues.tests.js b/lib/SimpleSchema_allowedValues.tests.js similarity index 100% rename from package/lib/SimpleSchema_allowedValues.tests.js rename to lib/SimpleSchema_allowedValues.tests.js diff --git a/package/lib/SimpleSchema_autoValueFunctions.tests.js b/lib/SimpleSchema_autoValueFunctions.tests.js similarity index 100% rename from package/lib/SimpleSchema_autoValueFunctions.tests.js rename to lib/SimpleSchema_autoValueFunctions.tests.js diff --git a/package/lib/SimpleSchema_blackbox.tests.js b/lib/SimpleSchema_blackbox.tests.js similarity index 100% rename from package/lib/SimpleSchema_blackbox.tests.js rename to lib/SimpleSchema_blackbox.tests.js diff --git a/package/lib/SimpleSchema_custom.tests.js b/lib/SimpleSchema_custom.tests.js similarity index 100% rename from package/lib/SimpleSchema_custom.tests.js rename to lib/SimpleSchema_custom.tests.js diff --git a/package/lib/SimpleSchema_definition.tests.js b/lib/SimpleSchema_definition.tests.js similarity index 100% rename from package/lib/SimpleSchema_definition.tests.js rename to lib/SimpleSchema_definition.tests.js diff --git a/package/lib/SimpleSchema_getObjectSchema.tests.js b/lib/SimpleSchema_getObjectSchema.tests.js similarity index 100% rename from package/lib/SimpleSchema_getObjectSchema.tests.js rename to lib/SimpleSchema_getObjectSchema.tests.js diff --git a/package/lib/SimpleSchema_getQuickTypeForKey.tests.js b/lib/SimpleSchema_getQuickTypeForKey.tests.js similarity index 100% rename from package/lib/SimpleSchema_getQuickTypeForKey.tests.js rename to lib/SimpleSchema_getQuickTypeForKey.tests.js diff --git a/package/lib/SimpleSchema_labels.tests.js b/lib/SimpleSchema_labels.tests.js similarity index 100% rename from package/lib/SimpleSchema_labels.tests.js rename to lib/SimpleSchema_labels.tests.js diff --git a/package/lib/SimpleSchema_max.tests.js b/lib/SimpleSchema_max.tests.js similarity index 100% rename from package/lib/SimpleSchema_max.tests.js rename to lib/SimpleSchema_max.tests.js diff --git a/package/lib/SimpleSchema_messages.tests.js b/lib/SimpleSchema_messages.tests.js similarity index 100% rename from package/lib/SimpleSchema_messages.tests.js rename to lib/SimpleSchema_messages.tests.js diff --git a/package/lib/SimpleSchema_min.tests.js b/lib/SimpleSchema_min.tests.js similarity index 100% rename from package/lib/SimpleSchema_min.tests.js rename to lib/SimpleSchema_min.tests.js diff --git a/package/lib/SimpleSchema_minCount.tests.js b/lib/SimpleSchema_minCount.tests.js similarity index 100% rename from package/lib/SimpleSchema_minCount.tests.js rename to lib/SimpleSchema_minCount.tests.js diff --git a/package/lib/SimpleSchema_namedContext.tests.js b/lib/SimpleSchema_namedContext.tests.js similarity index 100% rename from package/lib/SimpleSchema_namedContext.tests.js rename to lib/SimpleSchema_namedContext.tests.js diff --git a/package/lib/SimpleSchema_omit.tests.js b/lib/SimpleSchema_omit.tests.js similarity index 100% rename from package/lib/SimpleSchema_omit.tests.js rename to lib/SimpleSchema_omit.tests.js diff --git a/package/lib/SimpleSchema_oneOf.tests.js b/lib/SimpleSchema_oneOf.tests.js similarity index 100% rename from package/lib/SimpleSchema_oneOf.tests.js rename to lib/SimpleSchema_oneOf.tests.js diff --git a/package/lib/SimpleSchema_pick.tests.js b/lib/SimpleSchema_pick.tests.js similarity index 100% rename from package/lib/SimpleSchema_pick.tests.js rename to lib/SimpleSchema_pick.tests.js diff --git a/package/lib/SimpleSchema_regEx.tests.js b/lib/SimpleSchema_regEx.tests.js similarity index 100% rename from package/lib/SimpleSchema_regEx.tests.js rename to lib/SimpleSchema_regEx.tests.js diff --git a/package/lib/SimpleSchema_required.tests.js b/lib/SimpleSchema_required.tests.js similarity index 100% rename from package/lib/SimpleSchema_required.tests.js rename to lib/SimpleSchema_required.tests.js diff --git a/package/lib/SimpleSchema_rules.tests.js b/lib/SimpleSchema_rules.tests.js similarity index 100% rename from package/lib/SimpleSchema_rules.tests.js rename to lib/SimpleSchema_rules.tests.js diff --git a/package/lib/SimpleSchema_type.tests.js b/lib/SimpleSchema_type.tests.js similarity index 100% rename from package/lib/SimpleSchema_type.tests.js rename to lib/SimpleSchema_type.tests.js diff --git a/package/lib/ValidationContext.js b/lib/ValidationContext.js similarity index 100% rename from package/lib/ValidationContext.js rename to lib/ValidationContext.js diff --git a/package/lib/clean.js b/lib/clean.js similarity index 100% rename from package/lib/clean.js rename to lib/clean.js diff --git a/package/lib/clean.tests.js b/lib/clean.tests.js similarity index 100% rename from package/lib/clean.tests.js rename to lib/clean.tests.js diff --git a/package/lib/clean/AutoValueRunner.js b/lib/clean/AutoValueRunner.js similarity index 100% rename from package/lib/clean/AutoValueRunner.js rename to lib/clean/AutoValueRunner.js diff --git a/package/lib/clean/autoValue.tests.js b/lib/clean/autoValue.tests.js similarity index 100% rename from package/lib/clean/autoValue.tests.js rename to lib/clean/autoValue.tests.js diff --git a/package/lib/clean/convertToProperType.js b/lib/clean/convertToProperType.js similarity index 100% rename from package/lib/clean/convertToProperType.js rename to lib/clean/convertToProperType.js diff --git a/package/lib/clean/convertToProperType.tests.js b/lib/clean/convertToProperType.tests.js similarity index 100% rename from package/lib/clean/convertToProperType.tests.js rename to lib/clean/convertToProperType.tests.js diff --git a/package/lib/clean/defaultValue.tests.js b/lib/clean/defaultValue.tests.js similarity index 100% rename from package/lib/clean/defaultValue.tests.js rename to lib/clean/defaultValue.tests.js diff --git a/package/lib/clean/getPositionsForAutoValue.js b/lib/clean/getPositionsForAutoValue.js similarity index 100% rename from package/lib/clean/getPositionsForAutoValue.js rename to lib/clean/getPositionsForAutoValue.js diff --git a/package/lib/clean/setAutoValues.js b/lib/clean/setAutoValues.js similarity index 100% rename from package/lib/clean/setAutoValues.js rename to lib/clean/setAutoValues.js diff --git a/package/lib/clean/setAutoValues.tests.js b/lib/clean/setAutoValues.tests.js similarity index 100% rename from package/lib/clean/setAutoValues.tests.js rename to lib/clean/setAutoValues.tests.js diff --git a/package/lib/defaultMessages.js b/lib/defaultMessages.js similarity index 100% rename from package/lib/defaultMessages.js rename to lib/defaultMessages.js diff --git a/package/lib/doValidation.js b/lib/doValidation.js similarity index 100% rename from package/lib/doValidation.js rename to lib/doValidation.js diff --git a/package/lib/expandShorthand.js b/lib/expandShorthand.js similarity index 100% rename from package/lib/expandShorthand.js rename to lib/expandShorthand.js diff --git a/package/lib/expandShorthand.tests.js b/lib/expandShorthand.tests.js similarity index 100% rename from package/lib/expandShorthand.tests.js rename to lib/expandShorthand.tests.js diff --git a/package/lib/humanize.js b/lib/humanize.js similarity index 100% rename from package/lib/humanize.js rename to lib/humanize.js diff --git a/package/lib/humanize.tests.js b/lib/humanize.tests.js similarity index 100% rename from package/lib/humanize.tests.js rename to lib/humanize.tests.js diff --git a/package/lib/main.js b/lib/main.js similarity index 100% rename from package/lib/main.js rename to lib/main.js diff --git a/package/lib/regExp.js b/lib/regExp.js similarity index 100% rename from package/lib/regExp.js rename to lib/regExp.js diff --git a/package/lib/testHelpers/Address.js b/lib/testHelpers/Address.js similarity index 100% rename from package/lib/testHelpers/Address.js rename to lib/testHelpers/Address.js diff --git a/package/lib/testHelpers/expectErrorLength.js b/lib/testHelpers/expectErrorLength.js similarity index 100% rename from package/lib/testHelpers/expectErrorLength.js rename to lib/testHelpers/expectErrorLength.js diff --git a/package/lib/testHelpers/expectErrorOfTypeLength.js b/lib/testHelpers/expectErrorOfTypeLength.js similarity index 100% rename from package/lib/testHelpers/expectErrorOfTypeLength.js rename to lib/testHelpers/expectErrorOfTypeLength.js diff --git a/package/lib/testHelpers/expectRequiredErrorLength.js b/lib/testHelpers/expectRequiredErrorLength.js similarity index 100% rename from package/lib/testHelpers/expectRequiredErrorLength.js rename to lib/testHelpers/expectRequiredErrorLength.js diff --git a/package/lib/testHelpers/expectValid.js b/lib/testHelpers/expectValid.js similarity index 100% rename from package/lib/testHelpers/expectValid.js rename to lib/testHelpers/expectValid.js diff --git a/package/lib/testHelpers/friendsSchema.js b/lib/testHelpers/friendsSchema.js similarity index 100% rename from package/lib/testHelpers/friendsSchema.js rename to lib/testHelpers/friendsSchema.js diff --git a/package/lib/testHelpers/optionalCustomSchema.js b/lib/testHelpers/optionalCustomSchema.js similarity index 100% rename from package/lib/testHelpers/optionalCustomSchema.js rename to lib/testHelpers/optionalCustomSchema.js diff --git a/package/lib/testHelpers/requiredCustomSchema.js b/lib/testHelpers/requiredCustomSchema.js similarity index 100% rename from package/lib/testHelpers/requiredCustomSchema.js rename to lib/testHelpers/requiredCustomSchema.js diff --git a/package/lib/testHelpers/requiredSchema.js b/lib/testHelpers/requiredSchema.js similarity index 100% rename from package/lib/testHelpers/requiredSchema.js rename to lib/testHelpers/requiredSchema.js diff --git a/package/lib/testHelpers/testSchema.js b/lib/testHelpers/testSchema.js similarity index 100% rename from package/lib/testHelpers/testSchema.js rename to lib/testHelpers/testSchema.js diff --git a/package/lib/testHelpers/validate.js b/lib/testHelpers/validate.js similarity index 100% rename from package/lib/testHelpers/validate.js rename to lib/testHelpers/validate.js diff --git a/package/lib/utility/appendAffectedKey.js b/lib/utility/appendAffectedKey.js similarity index 100% rename from package/lib/utility/appendAffectedKey.js rename to lib/utility/appendAffectedKey.js diff --git a/package/lib/utility/dateToDateString.js b/lib/utility/dateToDateString.js similarity index 100% rename from package/lib/utility/dateToDateString.js rename to lib/utility/dateToDateString.js diff --git a/package/lib/utility/forEachKeyAncestor.js b/lib/utility/forEachKeyAncestor.js similarity index 100% rename from package/lib/utility/forEachKeyAncestor.js rename to lib/utility/forEachKeyAncestor.js diff --git a/package/lib/utility/getKeysWithValueInObj.js b/lib/utility/getKeysWithValueInObj.js similarity index 100% rename from package/lib/utility/getKeysWithValueInObj.js rename to lib/utility/getKeysWithValueInObj.js diff --git a/package/lib/utility/getLastPartOfKey.js b/lib/utility/getLastPartOfKey.js similarity index 100% rename from package/lib/utility/getLastPartOfKey.js rename to lib/utility/getLastPartOfKey.js diff --git a/package/lib/utility/getLastPartOfKey.tests.js b/lib/utility/getLastPartOfKey.tests.js similarity index 100% rename from package/lib/utility/getLastPartOfKey.tests.js rename to lib/utility/getLastPartOfKey.tests.js diff --git a/package/lib/utility/getParentOfKey.js b/lib/utility/getParentOfKey.js similarity index 100% rename from package/lib/utility/getParentOfKey.js rename to lib/utility/getParentOfKey.js diff --git a/package/lib/utility/index.js b/lib/utility/index.js similarity index 100% rename from package/lib/utility/index.js rename to lib/utility/index.js diff --git a/package/lib/utility/isEmptyObject.js b/lib/utility/isEmptyObject.js similarity index 100% rename from package/lib/utility/isEmptyObject.js rename to lib/utility/isEmptyObject.js diff --git a/package/lib/utility/isObjectWeShouldTraverse.js b/lib/utility/isObjectWeShouldTraverse.js similarity index 100% rename from package/lib/utility/isObjectWeShouldTraverse.js rename to lib/utility/isObjectWeShouldTraverse.js diff --git a/package/lib/utility/looksLikeModifier.js b/lib/utility/looksLikeModifier.js similarity index 100% rename from package/lib/utility/looksLikeModifier.js rename to lib/utility/looksLikeModifier.js diff --git a/package/lib/utility/merge.js b/lib/utility/merge.js similarity index 100% rename from package/lib/utility/merge.js rename to lib/utility/merge.js diff --git a/package/lib/validation/allowedValuesValidator.js b/lib/validation/allowedValuesValidator.js similarity index 100% rename from package/lib/validation/allowedValuesValidator.js rename to lib/validation/allowedValuesValidator.js diff --git a/package/lib/validation/requiredValidator.js b/lib/validation/requiredValidator.js similarity index 100% rename from package/lib/validation/requiredValidator.js rename to lib/validation/requiredValidator.js diff --git a/package/lib/validation/typeValidator/doArrayChecks.js b/lib/validation/typeValidator/doArrayChecks.js similarity index 100% rename from package/lib/validation/typeValidator/doArrayChecks.js rename to lib/validation/typeValidator/doArrayChecks.js diff --git a/package/lib/validation/typeValidator/doDateChecks.js b/lib/validation/typeValidator/doDateChecks.js similarity index 100% rename from package/lib/validation/typeValidator/doDateChecks.js rename to lib/validation/typeValidator/doDateChecks.js diff --git a/package/lib/validation/typeValidator/doNumberChecks.js b/lib/validation/typeValidator/doNumberChecks.js similarity index 100% rename from package/lib/validation/typeValidator/doNumberChecks.js rename to lib/validation/typeValidator/doNumberChecks.js diff --git a/package/lib/validation/typeValidator/doStringChecks.js b/lib/validation/typeValidator/doStringChecks.js similarity index 100% rename from package/lib/validation/typeValidator/doStringChecks.js rename to lib/validation/typeValidator/doStringChecks.js diff --git a/package/lib/validation/typeValidator/index.js b/lib/validation/typeValidator/index.js similarity index 100% rename from package/lib/validation/typeValidator/index.js rename to lib/validation/typeValidator/index.js diff --git a/package/package-lock.json b/package-lock.json similarity index 100% rename from package/package-lock.json rename to package-lock.json diff --git a/package/package.json b/package.json similarity index 100% rename from package/package.json rename to package.json diff --git a/package/.gitignore b/package/.gitignore deleted file mode 100644 index 0ba8c98..0000000 --- a/package/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -dist -.DS_Store -node_modules -npm-debug.log -.idea -LICENSE -README.md