-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d4186f
commit a6d78c5
Showing
43 changed files
with
225 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
'use strict'; | ||
|
||
const WarehouseError = require('../error'); | ||
import WarehouseError from '../error.js'; | ||
|
||
class PopulationError extends WarehouseError {} | ||
|
||
PopulationError.prototype.name = 'PopulationError'; | ||
|
||
module.exports = PopulationError; | ||
export default PopulationError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
'use strict'; | ||
|
||
const WarehouseError = require('../error'); | ||
import WarehouseError from '../error.js'; | ||
|
||
class ValidationError extends WarehouseError {} | ||
|
||
ValidationError.prototype.name = 'ValidationError'; | ||
|
||
module.exports = ValidationError; | ||
export default ValidationError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
'use strict'; | ||
import SchemaType from '../schematype.js'; | ||
import SchemaTypeString from './string.js'; | ||
import SchemaTypeNumber from './number.js'; | ||
import SchemaTypeBoolean from './boolean.js'; | ||
import SchemaTypeArray from './array.js'; | ||
import SchemaTypeObject from './object.js'; | ||
import SchemaTypeDate from './date.js'; | ||
import SchemaTypeVirtual from './virtual.js'; | ||
import SchemaTypeCUID from './cuid.js'; | ||
import SchemaTypeEnum from './enum.js'; | ||
import SchemaTypeInteger from './integer.js'; | ||
import SchemaTypeBuffer from './buffer.js'; | ||
|
||
exports.Mixed = require('../schematype'); | ||
exports.String = require('./string'); | ||
exports.Number = require('./number'); | ||
exports.Boolean = require('./boolean'); | ||
exports.Array = require('./array'); | ||
exports.Object = require('./object'); | ||
exports.Date = require('./date'); | ||
exports.Virtual = require('./virtual'); | ||
exports.CUID = require('./cuid'); | ||
exports.Enum = require('./enum'); | ||
exports.Integer = require('./integer'); | ||
exports.Buffer = require('./buffer'); | ||
export { | ||
SchemaType as Mixed, | ||
SchemaTypeString as String, | ||
SchemaTypeNumber as Number, | ||
SchemaTypeBoolean as Boolean, | ||
SchemaTypeArray as Array, | ||
SchemaTypeObject as Object, | ||
SchemaTypeDate as Date, | ||
SchemaTypeVirtual as Virtual, | ||
SchemaTypeCUID as CUID, | ||
SchemaTypeEnum as Enum, | ||
SchemaTypeInteger as Integer, | ||
SchemaTypeBuffer as Buffer | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.