@flink-app/test-utils 0.12.1-alpha.0 → 0.12.1-alpha.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.
package/dist/http.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FlinkApp, FlinkResponse } from "@flink-app/flink";
2
- export declare type HttpOpts = {
2
+ export type HttpOpts = {
3
3
  qs?: {
4
4
  [x: string]: string | string[];
5
5
  };
package/dist/http.js CHANGED
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
29
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
@@ -67,13 +67,13 @@ var gotOpts = {
67
67
  function init(_app, host) {
68
68
  if (host === void 0) { host = "localhost"; }
69
69
  app = _app;
70
- baseUrl = "http://" + host + ":" + app.port;
70
+ baseUrl = "http://".concat(host, ":").concat(app.port);
71
71
  }
72
72
  exports.init = init;
73
- function get(path, opts) {
74
- if (opts === void 0) { opts = {}; }
75
- return __awaiter(this, void 0, void 0, function () {
73
+ function get(path_1) {
74
+ return __awaiter(this, arguments, void 0, function (path, opts) {
76
75
  var res;
76
+ if (opts === void 0) { opts = {}; }
77
77
  return __generator(this, function (_a) {
78
78
  switch (_a.label) {
79
79
  case 0:
@@ -87,10 +87,10 @@ function get(path, opts) {
87
87
  });
88
88
  }
89
89
  exports.get = get;
90
- function post(path, body, opts) {
91
- if (opts === void 0) { opts = {}; }
92
- return __awaiter(this, void 0, void 0, function () {
90
+ function post(path_1, body_1) {
91
+ return __awaiter(this, arguments, void 0, function (path, body, opts) {
93
92
  var res;
93
+ if (opts === void 0) { opts = {}; }
94
94
  return __generator(this, function (_a) {
95
95
  switch (_a.label) {
96
96
  case 0:
@@ -104,10 +104,10 @@ function post(path, body, opts) {
104
104
  });
105
105
  }
106
106
  exports.post = post;
107
- function put(path, body, opts) {
108
- if (opts === void 0) { opts = {}; }
109
- return __awaiter(this, void 0, void 0, function () {
107
+ function put(path_1, body_1) {
108
+ return __awaiter(this, arguments, void 0, function (path, body, opts) {
110
109
  var res;
110
+ if (opts === void 0) { opts = {}; }
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -121,10 +121,10 @@ function put(path, body, opts) {
121
121
  });
122
122
  }
123
123
  exports.put = put;
124
- function del(path, opts) {
125
- if (opts === void 0) { opts = {}; }
126
- return __awaiter(this, void 0, void 0, function () {
124
+ function del(path_1) {
125
+ return __awaiter(this, arguments, void 0, function (path, opts) {
127
126
  var res;
127
+ if (opts === void 0) { opts = {}; }
128
128
  return __generator(this, function (_a) {
129
129
  switch (_a.label) {
130
130
  case 0:
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/mocks.js CHANGED
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
29
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/test-utils",
3
- "version": "0.12.1-alpha.0",
3
+ "version": "0.12.1-alpha.1",
4
4
  "description": "Test utils for Flink",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\"",
@@ -20,15 +20,15 @@
20
20
  "qs": "^6.7.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@flink-app/flink": "^0.12.1-alpha.0",
23
+ "@flink-app/flink": "^0.12.1-alpha.1",
24
24
  "@types/express": "^4.17.12",
25
25
  "@types/got": "^9.6.12",
26
- "@types/node": "^15.6.2",
26
+ "@types/node": "22.13.10",
27
27
  "jasmine-spec-reporter": "^7.0.0",
28
28
  "nodemon": "^2.0.7",
29
29
  "ts-node": "^9.1.1",
30
30
  "tsc-watch": "^4.2.9",
31
- "typescript": "^4.2.4"
31
+ "typescript": "5.4.5"
32
32
  },
33
- "gitHead": "7f6e32aa896f5cade313f3c5133c756fc5391ce8"
33
+ "gitHead": "040e670be372c0cc47d9c7106bed55780910cf39"
34
34
  }