@alessiofrittoli/fetcher 0.1.0-alpha.1 → 1.0.0
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/ping.d.mts +8 -0
- package/dist/ping.d.ts +8 -0
- package/dist/ping.js +1 -0
- package/dist/ping.mjs +1 -0
- package/package.json +77 -46
package/dist/ping.d.mts
ADDED
package/dist/ping.d.ts
ADDED
package/dist/ping.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _urlutils = require('@alessiofrittoli/url-utils');var l=(n,t)=>{navigator.sendBeacon(_urlutils.Url.format(n),t)};exports.ping = l;
|
package/dist/ping.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Url as o}from"@alessiofrittoli/url-utils";var a=(n,t)=>{navigator.sendBeacon(o.format(n),t)};export{a as ping};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alessiofrittoli/fetcher",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Typescript fetch/xhr utilities",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Alessio Frittoli",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
],
|
|
17
17
|
"keywords": [
|
|
18
18
|
"fetch",
|
|
19
|
-
"ajax"
|
|
19
|
+
"ajax",
|
|
20
|
+
"ping"
|
|
20
21
|
],
|
|
21
22
|
"homepage": "https://github.com/alessiofrittoli/fetcher#readme",
|
|
22
23
|
"bugs": {
|
|
@@ -36,27 +37,62 @@
|
|
|
36
37
|
],
|
|
37
38
|
"exports": {
|
|
38
39
|
".": {
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
"import": {
|
|
41
|
+
"types": "./dist/index.d.mts",
|
|
42
|
+
"default": "./dist/index.mjs"
|
|
43
|
+
},
|
|
44
|
+
"require": {
|
|
45
|
+
"types": "./dist/index.d.ts",
|
|
46
|
+
"default": "./dist/index.js"
|
|
47
|
+
}
|
|
42
48
|
},
|
|
43
49
|
"./fetch": {
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/fetch.d.mts",
|
|
52
|
+
"default": "./dist/fetch.mjs"
|
|
53
|
+
},
|
|
54
|
+
"require": {
|
|
55
|
+
"types": "./dist/fetch.d.ts",
|
|
56
|
+
"default": "./dist/fetch.js"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"./ping": {
|
|
60
|
+
"import": {
|
|
61
|
+
"types": "./dist/ping.d.mts",
|
|
62
|
+
"default": "./dist/ping.mjs"
|
|
63
|
+
},
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./dist/ping.d.ts",
|
|
66
|
+
"default": "./dist/ping.js"
|
|
67
|
+
}
|
|
47
68
|
},
|
|
48
69
|
"./xhr": {
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
70
|
+
"import": {
|
|
71
|
+
"types": "./dist/xhr/index.d.mts",
|
|
72
|
+
"default": "./dist/xhr/index.mjs"
|
|
73
|
+
},
|
|
74
|
+
"require": {
|
|
75
|
+
"types": "./dist/xhr/index.d.ts",
|
|
76
|
+
"default": "./dist/xhr/index.js"
|
|
77
|
+
}
|
|
52
78
|
},
|
|
53
79
|
"./error": {
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
80
|
+
"import": {
|
|
81
|
+
"types": "./dist/error.d.mts",
|
|
82
|
+
"default": "./dist/error.mjs"
|
|
83
|
+
},
|
|
84
|
+
"require": {
|
|
85
|
+
"types": "./dist/error.d.ts",
|
|
86
|
+
"default": "./dist/error.js"
|
|
87
|
+
}
|
|
57
88
|
},
|
|
58
89
|
"./types": {
|
|
59
|
-
"
|
|
90
|
+
"import": {
|
|
91
|
+
"types": "./dist/types.d.mts"
|
|
92
|
+
},
|
|
93
|
+
"require": {
|
|
94
|
+
"types": "./dist/types.d.ts"
|
|
95
|
+
}
|
|
60
96
|
}
|
|
61
97
|
},
|
|
62
98
|
"sideEffects": false,
|
|
@@ -64,11 +100,11 @@
|
|
|
64
100
|
"//1a": "*********************************************************************",
|
|
65
101
|
"//1b": "******************** DEV - BUILD - LINT - RELEASE *******************",
|
|
66
102
|
"//1c": "*********************************************************************",
|
|
67
|
-
"dev": "NODE_ENV=development tsup --watch",
|
|
68
|
-
"build:prod": "NODE_ENV=production tsup",
|
|
103
|
+
"dev": "cross-env NODE_ENV=development tsup --watch",
|
|
104
|
+
"build:prod": "cross-env NODE_ENV=production tsup",
|
|
69
105
|
"build": "pnpm lint && pnpm test:ci && pnpm build:prod",
|
|
70
106
|
"lint": "eslint",
|
|
71
|
-
"release": "node scripts/
|
|
107
|
+
"release": "node scripts/release.js --verbose --npm",
|
|
72
108
|
"//2a": "*********************************************************************",
|
|
73
109
|
"//2b": "***************************** UNIT TESTS ****************************",
|
|
74
110
|
"//2c": "*********************************************************************",
|
|
@@ -88,38 +124,33 @@
|
|
|
88
124
|
"test:fetch": "pnpm test:watch fetch.test.ts"
|
|
89
125
|
},
|
|
90
126
|
"devDependencies": {
|
|
91
|
-
"@alessiofrittoli/crypto-buffer": "^3.
|
|
92
|
-
"@eslint/js": "^9.
|
|
93
|
-
"@jest/globals": "^
|
|
94
|
-
"@types/jest": "^
|
|
95
|
-
"@types/node": "^
|
|
96
|
-
"concurrently": "^9.1
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
127
|
+
"@alessiofrittoli/crypto-buffer": "^3.7.0",
|
|
128
|
+
"@eslint/js": "^9.39.1",
|
|
129
|
+
"@jest/globals": "^30.2.0",
|
|
130
|
+
"@types/jest": "^30.0.0",
|
|
131
|
+
"@types/node": "^24.10.1",
|
|
132
|
+
"concurrently": "^9.2.1",
|
|
133
|
+
"cross-env": "^10.1.0",
|
|
134
|
+
"dotenv": "^17.2.3",
|
|
135
|
+
"eslint": "^9.39.1",
|
|
136
|
+
"globals": "^16.5.0",
|
|
100
137
|
"http-server": "^14.1.1",
|
|
101
|
-
"jest": "^
|
|
102
|
-
"jest-environment-jsdom": "^
|
|
103
|
-
"ts-jest": "^29.
|
|
138
|
+
"jest": "^30.2.0",
|
|
139
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
140
|
+
"ts-jest": "^29.4.6",
|
|
104
141
|
"ts-node": "^10.9.2",
|
|
105
|
-
"tsup": "^8.5.
|
|
106
|
-
"typescript": "^5.
|
|
107
|
-
"typescript-eslint": "^8.
|
|
142
|
+
"tsup": "^8.5.1",
|
|
143
|
+
"typescript": "^5.9.3",
|
|
144
|
+
"typescript-eslint": "^8.48.1"
|
|
108
145
|
},
|
|
109
146
|
"dependencies": {
|
|
110
147
|
"@alessiofrittoli/abort-controller": "^0.1.0",
|
|
111
|
-
"@alessiofrittoli/chain-functions": "^2.
|
|
112
|
-
"@alessiofrittoli/event-emitter": "^1.
|
|
113
|
-
"@alessiofrittoli/exception": "^3.
|
|
114
|
-
"@alessiofrittoli/node-scripts": "^2.
|
|
115
|
-
"@alessiofrittoli/type-utils": "^1.
|
|
116
|
-
"@alessiofrittoli/url-utils": "^3.
|
|
117
|
-
"@alessiofrittoli/web-utils": "^1.
|
|
118
|
-
},
|
|
119
|
-
"pnpm": {
|
|
120
|
-
"onlyBuiltDependencies": [
|
|
121
|
-
"@alessiofrittoli/type-utils",
|
|
122
|
-
"esbuild"
|
|
123
|
-
]
|
|
148
|
+
"@alessiofrittoli/chain-functions": "^2.5.0",
|
|
149
|
+
"@alessiofrittoli/event-emitter": "^1.6.0",
|
|
150
|
+
"@alessiofrittoli/exception": "^3.3.1",
|
|
151
|
+
"@alessiofrittoli/node-scripts": "^3.2.0",
|
|
152
|
+
"@alessiofrittoli/type-utils": "^1.9.0",
|
|
153
|
+
"@alessiofrittoli/url-utils": "^3.7.1",
|
|
154
|
+
"@alessiofrittoli/web-utils": "^1.18.0"
|
|
124
155
|
}
|
|
125
156
|
}
|