velocious 1.0.51 → 1.0.53

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "velocious": "bin/velocious.js"
4
4
  },
5
5
  "name": "velocious",
6
- "version": "1.0.51",
6
+ "version": "1.0.53",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "test": "VELOCIOUS_TEST_DIR=../ cd spec/dummy && npx velocious test",
@@ -1,6 +1,7 @@
1
1
  import {digg} from "diggerize"
2
2
  import restArgsError from "./utils/rest-args-error.js"
3
- import {withTrackedStack} from "./utils/with-tracked-stack.js"
3
+
4
+ // import {withTrackedStack} from "./utils/with-tracked-stack.js"
4
5
 
5
6
  export default class VelociousConfiguration {
6
7
  static current(throwError = true) {
@@ -158,9 +159,9 @@ export default class VelociousConfiguration {
158
159
  const dbs = {}
159
160
  const stack = Error().stack
160
161
  const actualCallback = async () => {
161
- await withTrackedStack(stack, async () => {
162
+ // await withTrackedStack(stack, async () => {
162
163
  return await callback(dbs)
163
- })
164
+ // })
164
165
  }
165
166
 
166
167
  let runRequest = actualCallback
@@ -1,4 +1,4 @@
1
- import {addTrackedStackToError} from "../utils/with-tracked-stack.js"
1
+ // import {addTrackedStackToError} from "../utils/with-tracked-stack.js"
2
2
  import Application from "../../src/application.js"
3
3
  import BacktraceCleaner from "../utils/backtrace-cleaner.js"
4
4
  import RequestClient from "./request-client.js"
@@ -146,7 +146,7 @@ export default class TestRunner {
146
146
  this._failedTests++
147
147
 
148
148
  // console.error(`${leftPadding} Test failed: ${error.message}`)
149
- addTrackedStackToError(error)
149
+ // addTrackedStackToError(error)
150
150
 
151
151
  const backtraceCleaner = new BacktraceCleaner(error)
152
152
  const cleanedStack = backtraceCleaner.getCleanedStack()
@@ -0,0 +1,10 @@
1
+ function addTrackedStackToError(error) {
2
+ // Not supported
3
+ }
4
+
5
+ async function withTrackedStack(arg1, arg2) {
6
+ // Not supported
7
+ return await callback()
8
+ }
9
+
10
+ export {addTrackedStackToError, withTrackedStack}