piral-fetch 1.8.0-beta.7667 → 1.8.0-beta.7668
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 +8 -8
- package/src/create.test.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-fetch",
|
|
3
|
-
"version": "1.8.0-beta.
|
|
3
|
+
"version": "1.8.0-beta.7668",
|
|
4
4
|
"description": "Plugin for standardizing fetch in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/cors": "^2
|
|
54
|
-
"@types/express": "^4
|
|
55
|
-
"cors": "^2
|
|
56
|
-
"express": "^4
|
|
57
|
-
"piral-core": "1.8.0-beta.
|
|
58
|
-
"whatwg-fetch": "^3
|
|
53
|
+
"@types/cors": "^2",
|
|
54
|
+
"@types/express": "^4",
|
|
55
|
+
"cors": "^2",
|
|
56
|
+
"express": "^4",
|
|
57
|
+
"piral-core": "1.8.0-beta.7668",
|
|
58
|
+
"whatwg-fetch": "^3"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "1b32d52d4d57363bed8af9105dd41a0635075721"
|
|
61
61
|
}
|
package/src/create.test.ts
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import 'whatwg-fetch';
|
|
5
5
|
import { describe, it, expect, vitest, beforeAll, afterAll } from 'vitest';
|
|
6
|
+
import getPort from 'get-port';
|
|
7
|
+
import cors from 'cors';
|
|
8
|
+
import express from 'express';
|
|
6
9
|
import { createFetchApi } from './create';
|
|
7
10
|
|
|
8
11
|
describe('Create fetch API Module', () => {
|
|
@@ -10,9 +13,6 @@ describe('Create fetch API Module', () => {
|
|
|
10
13
|
let port;
|
|
11
14
|
|
|
12
15
|
beforeAll(async () => {
|
|
13
|
-
const express = require('express');
|
|
14
|
-
const cors = require('cors');
|
|
15
|
-
const getPort = require('get-port');
|
|
16
16
|
const app = express();
|
|
17
17
|
port = await getPort();
|
|
18
18
|
|