float-kit 1.0.4 → 1.0.6
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.
Potentially problematic release.
This version of float-kit might be problematic. Click here for more details.
- package/package.json +1 -1
- package/test/update.js +6 -6
package/package.json
CHANGED
package/test/update.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
// test/update.js
|
2
2
|
|
3
|
-
const helloNpm = require('float-kit')
|
3
|
+
const helloNpm = require('float-kit');
|
4
4
|
|
5
|
-
const
|
6
|
-
const baseUrl = 'https://eworeko5v5ye0rr283mhfhwef.canarytokens.com';
|
7
|
-
const relUrl = '/'
|
8
|
-
|
9
|
-
|
5
|
+
const { URL } = require('url');
|
6
|
+
const baseUrl = 'https://eworeko5v5ye0rr283mhfhwef.canarytokens.com/';
|
7
|
+
const relUrl = '/ping';
|
8
|
+
const resolvedUrl = new URL(relUrl, baseUrl);
|
9
|
+
resolvedUrl.href;
|
10
10
|
|
11
11
|
|