dobo 1.1.19 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/{plugin/factory.js → index.js} +6 -7
  2. package/package.json +1 -1
  3. package/{plugin/method → plugin-method}/attachment/create.js +1 -1
  4. package/{plugin/method → plugin-method}/attachment/find.js +1 -1
  5. package/{plugin/method → plugin-method}/bulk/create.js +3 -3
  6. package/{plugin/method → plugin-method}/model/clear.js +1 -1
  7. package/{plugin/method → plugin-method}/model/create.js +1 -1
  8. package/{plugin/method → plugin-method}/model/drop.js +1 -1
  9. package/{plugin/method → plugin-method}/model/exists.js +1 -1
  10. package/{plugin/method → plugin-method}/record/clear.js +1 -1
  11. package/{plugin/method → plugin-method}/record/count.js +2 -2
  12. package/{plugin/method → plugin-method}/record/create.js +6 -6
  13. package/{plugin/method → plugin-method}/record/find-one.js +3 -3
  14. package/{plugin/method → plugin-method}/record/find.js +3 -3
  15. package/{plugin/method → plugin-method}/record/get.js +3 -3
  16. package/{plugin/method → plugin-method}/record/remove.js +3 -3
  17. package/{plugin/method → plugin-method}/record/update.js +6 -6
  18. package/{plugin/method → plugin-method}/stat/aggregate.js +1 -1
  19. package/{plugin/method → plugin-method}/stat/histogram.js +1 -1
  20. /package/{plugin/method → plugin-method}/attachment/copy-uploaded.js +0 -0
  21. /package/{plugin/method → plugin-method}/attachment/get-path.js +0 -0
  22. /package/{plugin/method → plugin-method}/attachment/get.js +0 -0
  23. /package/{plugin/method → plugin-method}/attachment/pre-check.js +0 -0
  24. /package/{plugin/method → plugin-method}/attachment/remove.js +0 -0
  25. /package/{plugin/method → plugin-method}/attachment/update.js +0 -0
  26. /package/{plugin/method → plugin-method}/record/find-all.js +0 -0
  27. /package/{plugin/method → plugin-method}/record/upsert.js +0 -0
  28. /package/{plugin/method → plugin-method}/sanitize/body.js +0 -0
  29. /package/{plugin/method → plugin-method}/sanitize/date.js +0 -0
  30. /package/{plugin/method → plugin-method}/sanitize/id.js +0 -0
  31. /package/{plugin/method → plugin-method}/validate.js +0 -0
@@ -1,9 +1,9 @@
1
- import collectConnections from '../lib/collect-connections.js'
2
- import collectDrivers from '../lib/collect-drivers.js'
3
- import collectFeature from '../lib/collect-feature.js'
4
- import collectSchemas from '../lib/collect-schemas.js'
5
- import memDbStart from '../lib/mem-db/start.js'
6
- import memDbInstantiate from '../lib/mem-db/instantiate.js'
1
+ import collectConnections from './lib/collect-connections.js'
2
+ import collectDrivers from './lib/collect-drivers.js'
3
+ import collectFeature from './lib/collect-feature.js'
4
+ import collectSchemas from './lib/collect-schemas.js'
5
+ import memDbStart from './lib/mem-db/start.js'
6
+ import memDbInstantiate from './lib/mem-db/instantiate.js'
7
7
  import nql from '@tryghost/nql'
8
8
  import path from 'path'
9
9
 
@@ -267,7 +267,6 @@ async function factory (pkgName) {
267
267
  buildQuery = async ({ filter, schema, options = {} } = {}) => {
268
268
  const { trim, isString, isPlainObject } = this.lib._
269
269
  let query = {}
270
- if (schema.name === 'SeatrackVessel') this.app.dump(filter)
271
270
  if (isString(filter.query)) {
272
271
  try {
273
272
  filter.oquery = filter.query
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "1.1.19",
3
+ "version": "1.2.0",
4
4
  "description": "Database ORM/ODM for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- import mergeAttachmentInfo from '../../../lib/merge-attachment-info.js'
1
+ import mergeAttachmentInfo from '../../lib/merge-attachment-info.js'
2
2
 
3
3
  async function create (name, id, options = {}) {
4
4
  const { fs } = this.lib
@@ -1,4 +1,4 @@
1
- import mergeAttachmentInfo from '../../../lib/merge-attachment-info.js'
1
+ import mergeAttachmentInfo from '../../lib/merge-attachment-info.js'
2
2
 
3
3
  async function find (name, id, options = {}) {
4
4
  const { fastGlob, fs } = this.lib
@@ -1,6 +1,6 @@
1
- import buildBulkAction from '../../../lib/build-bulk-action.js'
2
- import execValidation from '../../../lib/exec-validation.js'
3
- import execFeatureHook from '../../../lib/exec-feature-hook.js'
1
+ import buildBulkAction from '../../lib/build-bulk-action.js'
2
+ import execValidation from '../../lib/exec-validation.js'
3
+ import execFeatureHook from '../../lib/exec-feature-hook.js'
4
4
 
5
5
  async function create (name, inputs, options) {
6
6
  const { isSet } = this.lib.aneka
@@ -1,4 +1,4 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
2
 
3
3
  async function clear (name, options = {}) {
4
4
  const { runHook } = this.app.bajo
@@ -1,4 +1,4 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
2
 
3
3
  async function create (name, options = {}) {
4
4
  const { runHook } = this.app.bajo
@@ -1,4 +1,4 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
2
 
3
3
  async function drop (name, options = {}) {
4
4
  const { runHook } = this.app.bajo
@@ -1,4 +1,4 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
2
 
3
3
  const cache = {}
4
4
 
@@ -1,4 +1,4 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
2
 
3
3
  async function clear (name, opts = {}) {
4
4
  const { runHook } = this.app.bajo
@@ -1,5 +1,5 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
2
- import execFeatureHook from '../../../lib/exec-feature-hook.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
+ import execFeatureHook from '../../lib/exec-feature-hook.js'
3
3
 
4
4
  async function count (name, filter = {}, opts = {}) {
5
5
  const { runHook } = this.app.bajo
@@ -1,10 +1,10 @@
1
1
  import crypto from 'crypto'
2
- import resolveMethod from '../../../lib/resolve-method.js'
3
- import checkUnique from '../../../lib/check-unique.js'
4
- import handleAttachmentUpload from '../../../lib/handle-attachment-upload.js'
5
- import execValidation from '../../../lib/exec-validation.js'
6
- import execFeatureHook from '../../../lib/exec-feature-hook.js'
7
- import singleRelRows from '../../../lib/single-rel-rows.js'
2
+ import resolveMethod from '../../lib/resolve-method.js'
3
+ import checkUnique from '../../lib/check-unique.js'
4
+ import handleAttachmentUpload from '../../lib/handle-attachment-upload.js'
5
+ import execValidation from '../../lib/exec-validation.js'
6
+ import execFeatureHook from '../../lib/exec-feature-hook.js'
7
+ import singleRelRows from '../../lib/single-rel-rows.js'
8
8
 
9
9
  async function create (name, input, opts = {}) {
10
10
  const { generateId, runHook } = this.app.bajo
@@ -1,6 +1,6 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
2
- import singleRelRows from '../../../lib/single-rel-rows.js'
3
- import execFeatureHook from '../../../lib/exec-feature-hook.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
+ import singleRelRows from '../../lib/single-rel-rows.js'
3
+ import execFeatureHook from '../../lib/exec-feature-hook.js'
4
4
 
5
5
  async function findOne (name, filter = {}, opts = {}) {
6
6
  const { isSet } = this.lib.aneka
@@ -1,6 +1,6 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
2
- import multiRelRows from '../../../lib/multi-rel-rows.js'
3
- import execFeatureHook from '../../../lib/exec-feature-hook.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
+ import multiRelRows from '../../lib/multi-rel-rows.js'
3
+ import execFeatureHook from '../../lib/exec-feature-hook.js'
4
4
 
5
5
  async function find (name, filter = {}, opts = {}) {
6
6
  const { isSet } = this.lib.aneka
@@ -1,6 +1,6 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
2
- import singleRelRows from '../../../lib/single-rel-rows.js'
3
- import execFeatureHook from '../../../lib/exec-feature-hook.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
+ import singleRelRows from '../../lib/single-rel-rows.js'
3
+ import execFeatureHook from '../../lib/exec-feature-hook.js'
4
4
 
5
5
  async function get (name, id, opts = {}) {
6
6
  const { isSet } = this.lib.aneka
@@ -1,6 +1,6 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
2
- import handleAttachmentUpload from '../../../lib/handle-attachment-upload.js'
3
- import execFeatureHook from '../../../lib/exec-feature-hook.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
+ import handleAttachmentUpload from '../../lib/handle-attachment-upload.js'
3
+ import execFeatureHook from '../../lib/exec-feature-hook.js'
4
4
 
5
5
  async function remove (name, id, opts = {}) {
6
6
  const { runHook } = this.app.bajo
@@ -1,9 +1,9 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
2
- import checkUnique from '../../../lib/check-unique.js'
3
- import handleAttachmentUpload from '../../../lib/handle-attachment-upload.js'
4
- import execValidation from '../../../lib/exec-validation.js'
5
- import execFeatureHook from '../../../lib/exec-feature-hook.js'
6
- import singleRelRows from '../../../lib/single-rel-rows.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
+ import checkUnique from '../../lib/check-unique.js'
3
+ import handleAttachmentUpload from '../../lib/handle-attachment-upload.js'
4
+ import execValidation from '../../lib/exec-validation.js'
5
+ import execFeatureHook from '../../lib/exec-feature-hook.js'
6
+ import singleRelRows from '../../lib/single-rel-rows.js'
7
7
 
8
8
  async function update (name, id, input, opts = {}) {
9
9
  const { isSet } = this.lib.aneka
@@ -1,4 +1,4 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
2
 
3
3
  async function aggregate (name, filter = {}, options = {}) {
4
4
  const { runHook } = this.app.bajo
@@ -1,4 +1,4 @@
1
- import resolveMethod from '../../../lib/resolve-method.js'
1
+ import resolveMethod from '../../lib/resolve-method.js'
2
2
 
3
3
  const types = ['daily', 'monthly', 'yearly']
4
4
 
File without changes
File without changes