alp-node 4.0.1 → 4.0.2
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/AlpNodeApp.js +1 -0
- package/CHANGELOG.md +11 -0
- package/dist/fetch-node14.mjs +5 -0
- package/dist/fetch-node14.mjs.map +1 -0
- package/dist/fetch.d.ts +6 -0
- package/dist/fetch.d.ts.map +1 -0
- package/fetch.js +2 -0
- package/package.json +13 -10
- package/src/fetch.ts +11 -0
- package/fetch.cjs +0 -5
- package/fetch.d.ts +0 -1
- package/fetch.mjs +0 -6
package/AlpNodeApp.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/AlpNodeApp-node14.mjs';
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.2](https://github.com/christophehurpeau/alp/compare/alp-node@4.0.1...alp-node@4.0.2) (2022-01-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* extra entries ([fbfb15f](https://github.com/christophehurpeau/alp/commit/fbfb15fd4cfc474ccb803105fb8ece71414a6f5d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.0.1](https://github.com/christophehurpeau/alp/compare/alp-node@4.0.0...alp-node@4.0.1) (2022-01-02)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package alp-node
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-node14.mjs","sources":["../src/fetch.ts"],"sourcesContent":["import nodeFetch from 'node-fetch';\n\ndeclare global {\n // eslint-disable-next-line vars-on-top, no-var\n var fetch: typeof nodeFetch;\n}\n\nglobal.fetch = nodeFetch;\n\n// eslint-disable-next-line unicorn/prefer-export-from\nexport default nodeFetch;\n"],"names":["global","fetch","nodeFetch"],"mappings":";;;AAOAA,MAAM,CAACC,KAAP,GAAeC,SAAf"}
|
package/dist/fetch.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../src/fetch.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,KAAK,EAAE,OAAO,SAAS,CAAC;CAC7B;AAKD,eAAe,SAAS,CAAC"}
|
package/fetch.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alp-node",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "framework based on koa 2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"springbokjs",
|
|
@@ -28,8 +28,11 @@
|
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"typesVersions": {
|
|
30
30
|
">=3.1": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"AlpNodeApp": [
|
|
32
|
+
"./dist/AlpNodeApp.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"fetch": [
|
|
35
|
+
"./dist/fetch.d.ts"
|
|
33
36
|
]
|
|
34
37
|
}
|
|
35
38
|
},
|
|
@@ -46,13 +49,15 @@
|
|
|
46
49
|
}
|
|
47
50
|
},
|
|
48
51
|
"./fetch": {
|
|
49
|
-
"
|
|
50
|
-
|
|
52
|
+
"node": {
|
|
53
|
+
"import": "./dist/fetch-node14.mjs"
|
|
54
|
+
}
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
"module:node": "./dist/index-node14.mjs",
|
|
54
58
|
"module:aliases-node": {
|
|
55
|
-
"./AlpNodeApp.js": "./dist/AlpNodeApp-node14.es.js"
|
|
59
|
+
"./AlpNodeApp.js": "./dist/AlpNodeApp-node14.es.js",
|
|
60
|
+
"./fetch.js": "./dist/fetch-node14.es.js"
|
|
56
61
|
},
|
|
57
62
|
"sideEffects": false,
|
|
58
63
|
"scripts": {
|
|
@@ -80,9 +85,7 @@
|
|
|
80
85
|
],
|
|
81
86
|
"entries": [
|
|
82
87
|
"index",
|
|
83
|
-
"AlpNodeApp"
|
|
84
|
-
],
|
|
85
|
-
"extraEntries": [
|
|
88
|
+
"AlpNodeApp",
|
|
86
89
|
"fetch"
|
|
87
90
|
]
|
|
88
91
|
},
|
|
@@ -110,5 +113,5 @@
|
|
|
110
113
|
"pob-babel": "29.6.1",
|
|
111
114
|
"typescript": "4.5.4"
|
|
112
115
|
},
|
|
113
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "c6eb2cd21ffe46263c09a0f070b9bc09f4216350"
|
|
114
117
|
}
|
package/src/fetch.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import nodeFetch from 'node-fetch';
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
// eslint-disable-next-line vars-on-top, no-var
|
|
5
|
+
var fetch: typeof nodeFetch;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
global.fetch = nodeFetch;
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line unicorn/prefer-export-from
|
|
11
|
+
export default nodeFetch;
|
package/fetch.cjs
DELETED
package/fetch.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from 'node-fetch';
|