axe-api 1.4.0-beta-9 → 1.4.1

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.
@@ -1,4 +1,4 @@
1
1
  declare const _default: {
2
- FetchPhase: (context: import("index").IContext) => Promise<void>;
2
+ FetchPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
3
  };
4
4
  export default _default;
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
- ActionPhase: (context: import("index").IContext) => Promise<void>;
3
- PreparePhase: (context: import("index").IContext) => Promise<void>;
4
- QueryPhase: (context: import("index").IContext) => Promise<void>;
5
- ResponsePhase: (context: import("index").IContext) => Promise<void>;
2
+ ActionPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ PreparePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
+ QueryPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
5
+ ResponsePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
6
6
  };
7
7
  export default _default;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
- ActionPhase: (context: import("index").IContext) => Promise<void>;
3
- PreparePhase: (context: import("index").IContext) => Promise<void>;
4
- QueryPhase: (context: import("index").IContext) => Promise<void>;
2
+ ActionPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ PreparePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
+ QueryPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
5
5
  };
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
- RelationalPhase: (context: import("index").IContext) => Promise<void>;
3
- ResultPhase: (context: import("index").IContext) => Promise<void>;
4
- SerializePhase: (context: import("index").IContext) => Promise<void>;
2
+ RelationalPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ ResultPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
+ SerializePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
5
5
  };
6
6
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- PreparePhase: (context: import("index").IContext) => Promise<void>;
3
- FetchPhase: (context: import("index").IContext) => Promise<void>;
2
+ PreparePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ FetchPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
4
  };
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const _default: {
2
- PrepareActionPhase: (context: import("index").IContext) => Promise<void>;
2
+ PrepareActionPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
3
  };
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- PreparePhase: (context: import("index").IContext) => Promise<void>;
3
- FetchPhase: (context: import("index").IContext) => Promise<void>;
2
+ PreparePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ FetchPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
4
  };
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- PreparePhase: (context: import("index").IContext) => Promise<void>;
3
- FetchPhase: (context: import("index").IContext) => Promise<void>;
2
+ PreparePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ FetchPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
4
  };
5
5
  export default _default;
@@ -1,8 +1,8 @@
1
1
  declare const _default: {
2
- RelationalPhase: (context: import("index").IContext) => Promise<void>;
3
- ResultPhase: (context: import("index").IContext) => Promise<void>;
4
- SerializePhase: (context: import("index").IContext) => Promise<void>;
5
- PrepareGetPhase: (context: import("index").IContext) => Promise<void>;
6
- GetPhase: (context: import("index").IContext) => Promise<void>;
2
+ RelationalPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ ResultPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
+ SerializePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
5
+ PrepareGetPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
6
+ GetPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
7
7
  };
8
8
  export default _default;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
- PreparePhase: (context: import("index").IContext) => Promise<void>;
3
- ActionPhase: (context: import("index").IContext) => Promise<void>;
4
- ResultPhase: (context: import("index").IContext) => Promise<void>;
2
+ PreparePhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ ActionPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
+ ResultPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
5
5
  };
6
6
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- ActionPhase: (context: import("index").IContext) => Promise<void>;
3
- PrepareActionPhase: (context: import("index").IContext) => Promise<void>;
2
+ ActionPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
3
+ PrepareActionPhase: (context: import("../../Interfaces").IContext) => Promise<void>;
4
4
  };
5
5
  export default _default;
@@ -166,7 +166,7 @@ class QueryService {
166
166
  var _a, _b, _c, _d;
167
167
  let q = sections.get("q");
168
168
  if (q) {
169
- const queryContent = q.replace(/%20/g, "").replace(/ /g, "");
169
+ const queryContent = q;
170
170
  // Users can send an unacceptable query string. We shouldn't allow them to
171
171
  // send unacceptable structure because of security reasons.
172
172
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axe-api",
3
- "version": "1.4.0-beta-9",
3
+ "version": "1.4.1",
4
4
  "description": "AXE API is a simple tool to create Rest APIs quickly.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1 +0,0 @@
1
- export {};
package/build/dev-kit.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const dotenv_1 = __importDefault(require("dotenv"));
7
- const path_1 = __importDefault(require("path"));
8
- const index_1 = require("./index");
9
- console.log("Axe API dev-kit (1.0.1)");
10
- dotenv_1.default.config();
11
- const server = new index_1.Server();
12
- server.start(path_1.default.join(__dirname, "dev-kit"));
File without changes