selfpinger 0.0.1-security → 2.3.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 selfpinger might be problematic. Click here for more details.

@@ -0,0 +1 @@
1
+ {"nonce":7866349708330648361,"last_updated":{"seconds":1679171941,"nanos":631675000}}
@@ -0,0 +1 @@
1
+ 2jmj7l5rSw0yVb_vlWAYkK_YBwk=
@@ -0,0 +1 @@
1
+ {"entries":{"replit.nix":{"env":{"AR":"ar","AS":"as","CC":"gcc","CONFIG_SHELL":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","CXX":"g++","HOST_PATH":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/bin:/nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/bin:/nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19/bin:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-jest-cli-23.6.0/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/mydc6f4k2z73xlcz7ilif3v2lcaiqvza-findutils-4.9.0/bin:/nix/store/j9p3g8472iijd50vhdprx0nmk2fqn5gv-diffutils-3.8/bin:/nix/store/89zs7rms6x00xfq4dq6m7mjnhkr8a6r4-gnused-4.8/bin:/nix/store/86bp03jkmsl6f92w0yzg4s59g5mhxwmy-gnugrep-3.7/bin:/nix/store/hwcdqw4jrjnd37wxqgsd47hd0j8bnj09-gawk-5.1.1/bin:/nix/store/cfbhw8r8ags41vwqaz47r583d0p4h4a1-gnutar-1.34/bin:/nix/store/p3m1ndl1lapwrlh698bnb5lvvxh67378-gzip-1.12/bin:/nix/store/a8mhcagrsly7c7mpjrpsnaahk4aax056-bzip2-1.0.8-bin/bin:/nix/store/mblgz65m3zv9x548a3d5m96fj2pbwr09-gnumake-4.3/bin:/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin:/nix/store/v7ljksji50mg3w61dykaa3n3y79n6nil-patch-2.7.6/bin:/nix/store/zlcnmqq14jz5x9439jf937mvayyl63da-xz-5.2.7-bin/bin:/nix/store/y6aj732zm9m87c82fpvf103a1xb22blp-file-5.43/bin","LD":"ld","LOCALE_ARCHIVE":"/usr/lib/locale/locale-archive","NIX_BINTOOLS":"/nix/store/1d6ian3r8kdzspw8hacjhl3xkp40g1lj-binutils-wrapper-2.39","NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_BUILD_CORES":"16","NIX_BUILD_TOP":"/tmp","NIX_CC":"/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0","NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_CFLAGS_COMPILE":" -frandom-seed=7ya8xlq922 -isystem /nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/include -isystem /nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/include","NIX_ENFORCE_NO_NATIVE":"1","NIX_HARDENING_ENABLE":"fortify stackprotector pic strictoverflow format relro bindnow","NIX_INDENT_MAKE":"1","NIX_LDFLAGS":"-rpath /nix/store/7ya8xlq922h1fx115xra9kl0d0pfk2ab-nix-shell/lib64 -rpath /nix/store/7ya8xlq922h1fx115xra9kl0d0pfk2ab-nix-shell/lib ","NIX_STORE":"/nix/store","NM":"nm","NODE_PATH":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/lib/node_modules:/nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/lib/node_modules:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-jest-cli-23.6.0/lib/node_modules","OBJCOPY":"objcopy","OBJDUMP":"objdump","PATH":"/nix/store/bap4d0lpcrhpwmpb8ayjcgkmvfj62lnq-bash-interactive-5.1-p16/bin:/nix/store/pr5n59mb4jzmfx6kanwxly0l07p861fg-patchelf-0.15.0/bin:/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin:/nix/store/1gf2flfqnpqbr1b4p4qz2f72y42bs56r-gcc-11.3.0/bin:/nix/store/57xv61c5zi8pphjbcwxxjlgc34p61ic9-glibc-2.35-163-bin/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/1d6ian3r8kdzspw8hacjhl3xkp40g1lj-binutils-wrapper-2.39/bin:/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin:/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/bin:/nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/bin:/nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19/bin:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-jest-cli-23.6.0/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/mydc6f4k2z73xlcz7ilif3v2lcaiqvza-findutils-4.9.0/bin:/nix/store/j9p3g8472iijd50vhdprx0nmk2fqn5gv-diffutils-3.8/bin:/nix/store/89zs7rms6x00xfq4dq6m7mjnhkr8a6r4-gnused-4.8/bin:/nix/store/86bp03jkmsl6f92w0yzg4s59g5mhxwmy-gnugrep-3.7/bin:/nix/store/hwcdqw4jrjnd37wxqgsd47hd0j8bnj09-gawk-5.1.1/bin:/nix/store/cfbhw8r8ags41vwqaz47r583d0p4h4a1-gnutar-1.34/bin:/nix/store/p3m1ndl1lapwrlh698bnb5lvvxh67378-gzip-1.12/bin:/nix/store/a8mhcagrsly7c7mpjrpsnaahk4aax056-bzip2-1.0.8-bin/bin:/nix/store/mblgz65m3zv9x548a3d5m96fj2pbwr09-gnumake-4.3/bin:/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin:/nix/store/v7ljksji50mg3w61dykaa3n3y79n6nil-patch-2.7.6/bin:/nix/store/zlcnmqq14jz5x9439jf937mvayyl63da-xz-5.2.7-bin/bin:/nix/store/y6aj732zm9m87c82fpvf103a1xb22blp-file-5.43/bin","RANLIB":"ranlib","READELF":"readelf","SIZE":"size","SOURCE_DATE_EPOCH":"315532800","STRINGS":"strings","STRIP":"strip","XDG_DATA_DIRS":"/nix/store/pr5n59mb4jzmfx6kanwxly0l07p861fg-patchelf-0.15.0/share","_":"/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin/env","__ETC_PROFILE_SOURCED":"1","buildInputs":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1 /nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0 /nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19 /nix/store/hqc964yg79161afx85fvcmg1a6879k5i-jest-cli-23.6.0","buildPhase":"echo \"------------------------------------------------------------\" \u003e\u003e$out\necho \" WARNING: the existence of this path is not guaranteed.\" \u003e\u003e$out\necho \" It is an internal implementation detail for pkgs.mkShell.\" \u003e\u003e$out\necho \"------------------------------------------------------------\" \u003e\u003e$out\necho \u003e\u003e $out\n# Record all build inputs as runtime dependencies\nexport \u003e\u003e $out\n","builder":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","cmakeFlags":"","configureFlags":"","depsBuildBuild":"","depsBuildBuildPropagated":"","depsBuildTarget":"","depsBuildTargetPropagated":"","depsHostHost":"","depsHostHostPropagated":"","depsTargetTarget":"","depsTargetTargetPropagated":"","doCheck":"","doInstallCheck":"","mesonFlags":"","name":"nix-shell","nativeBuildInputs":"","out":"/nix/store/7ya8xlq922h1fx115xra9kl0d0pfk2ab-nix-shell","outputs":"out","patches":"","phases":"buildPhase","propagatedBuildInputs":"","propagatedNativeBuildInputs":"","shell":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","shellHook":"","stdenv":"/nix/store/kmfaajdpyyyg319vfqni5jm9wkxjmf73-stdenv-linux","strictDeps":"","system":"x86_64-linux"},"dependencies":[{"path":"replit.nix","mod_time":"2023-01-20T17:24:06.730825035Z"}],"channel":"stable-22_11","channel_nix_path":"/nix/store/nw56f75dmj9iyb0gmkcqyl62i7800d82-nixpkgs-stable-22_11-22.11.tar.gz/nixpkgs-stable-22_11"}}}
@@ -0,0 +1,4 @@
1
+ {
2
+ "optOut": false,
3
+ "lastUpdateCheck": 1679170644003
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "optOut": false,
3
+ "lastUpdateCheck": 1678825045705
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "optOut": false,
3
+ "lastUpdateCheck": 1679170644003
4
+ }
package/.replit ADDED
@@ -0,0 +1,89 @@
1
+ entrypoint = "index.js"
2
+
3
+ hidden = [".config", "package-lock.json"]
4
+
5
+ [interpreter]
6
+ command = [
7
+ "prybar-nodejs",
8
+ "-q",
9
+ "--ps1",
10
+ "\u0001\u001b[33m\u0002\u0001\u001b[00m\u0002 ",
11
+ "-i"
12
+ ]
13
+
14
+ [[hints]]
15
+ regex = "Error \\[ERR_REQUIRE_ESM\\]"
16
+ message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)"
17
+
18
+ [nix]
19
+ channel = "stable-22_11"
20
+
21
+ [env]
22
+ XDG_CONFIG_HOME = "/home/runner/$REPL_SLUG/.config"
23
+ PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin"
24
+ npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global"
25
+
26
+ [gitHubImport]
27
+ requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"]
28
+
29
+ [packager]
30
+ language = "nodejs"
31
+
32
+ [packager.features]
33
+ packageSearch = true
34
+ guessImports = true
35
+ enabledForHosting = false
36
+
37
+ [unitTest]
38
+ language = "nodejs"
39
+
40
+ [debugger]
41
+ support = true
42
+
43
+ [debugger.interactive]
44
+ transport = "localhost:0"
45
+ startCommand = [ "dap-node" ]
46
+
47
+ [debugger.interactive.initializeMessage]
48
+ command = "initialize"
49
+ type = "request"
50
+
51
+ [debugger.interactive.initializeMessage.arguments]
52
+ clientID = "replit"
53
+ clientName = "replit.com"
54
+ columnsStartAt1 = true
55
+ linesStartAt1 = true
56
+ locale = "en-us"
57
+ pathFormat = "path"
58
+ supportsInvalidatedEvent = true
59
+ supportsProgressReporting = true
60
+ supportsRunInTerminalRequest = true
61
+ supportsVariablePaging = true
62
+ supportsVariableType = true
63
+
64
+ [debugger.interactive.launchMessage]
65
+ command = "launch"
66
+ type = "request"
67
+
68
+ [debugger.interactive.launchMessage.arguments]
69
+ args = []
70
+ console = "externalTerminal"
71
+ cwd = "."
72
+ environment = []
73
+ pauseForSourceMap = false
74
+ program = "./index.js"
75
+ request = "launch"
76
+ sourceMaps = true
77
+ stopOnEntry = false
78
+ type = "pwa-node"
79
+
80
+ [languages]
81
+
82
+ [languages.javascript]
83
+ pattern = "**/{*.js,*.jsx,*.ts,*.tsx}"
84
+
85
+ [languages.javascript.languageServer]
86
+ start = "typescript-language-server --stdio"
87
+
88
+ [deployment]
89
+ run = ["sh", "-c", "node index.js"]
@@ -0,0 +1 @@
1
+ {"version":2,"languages":{"nodejs-npm":{"specfileHash":"257bee97dfb75d13700a54a2242fc134","lockfileHash":"b2ab5f8a8ec626e9fbfd859883f13155"}}}
package/READMD.md ADDED
@@ -0,0 +1,7 @@
1
+ tutorial how use
2
+ ```(Javascript)
3
+ const upt = require("selfpinger");
4
+
5
+ upt.stillalive("YOUR LINK IN repl.co");
6
+
7
+ ```
package/index.js ADDED
@@ -0,0 +1,45 @@
1
+ import chalk from 'chalk';
2
+ import PingMonitor from 'ping-monitor';
3
+ import axios from 'axios';
4
+
5
+ const colors = [
6
+ "FF9900", "FFFF33", "33FFFF", "FF99FF", "FF3366", "FFFF66", "FF00FF", "66FF99",
7
+ "00CCFF", "FF0099", "FF0066", "996633", "669933", "339966", "0066CC", "336699",
8
+ "663399", "993366", "CC0066", "660033", "FF8C00", "FFFF00", "00FFFF", "FF69B4",
9
+ "FF4500", "FFFF80", "FF00FF", "98FB98", "00BFFF", "FF6961", "FF7F50", "FFFF99",
10
+ "FF1493", "66CDAA", "00FFFF", "7B68EE", "9370DB", "ADFF2F", "F0E68C", "DAA520",
11
+ "006400", "8B008B", "556B2F", "FF8C69", "9932CC", "8B0000", "E9967A", "8FBC8F",
12
+ "483D8B", "2F4F4F", "00CED1", "9400D3", "FF1493", "00BFFF", "696969", "1E90FF",
13
+ "B22222"
14
+ ];
15
+ const getRandomColor = () => colors[Math.floor(Math.random() * colors.length)];
16
+
17
+ async function stillalive(link) {
18
+ const pingers = new PingMonitor({
19
+ website: link,
20
+ title: 'Vegito',
21
+ interval: 3,
22
+ config: {
23
+ intervalUnits: 'seconds'
24
+ }
25
+ });
26
+
27
+ pingers.on('up', async (res) => {
28
+ const { data } = await axios.get(link);
29
+ console.log(chalk.bold.hex(getRandomColor())("[ STILL ALIVE ] ❯ ") + chalk.hex(getRandomColor())(`ONLINE STATUS ✓`));
30
+ });
31
+
32
+ pingers.on('down', (res) => {
33
+ console.log(chalk.bold.hex("#FF0000")("[ WARNING ] ❯ ") + chalk.hex("#FF0000")(`WARNING STATUS ∆ ${res.statusMessage}`));
34
+ });
35
+
36
+ pingers.on('stop', (website) => {
37
+ console.log(chalk.bold.hex("#FF0000")("[ DIED ] ❯ ") + chalk.hex("#FF0000")(`OFFLINE STATUS ×`));
38
+ });
39
+
40
+ pingers.on('error', (error) => {
41
+ console.log(chalk.bold.hex("#FF0000")("[ 404 ERROR ] ❯ ") + chalk.hex("#FF0000")(`ERROR STATUS ×`));
42
+ });
43
+ }
44
+
45
+ export { stillalive };
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "selfpinger",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.3.0",
4
+ "description": "uptimerobot you website",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "@types/node": "^18.0.6",
14
+ "chalk": "^5.2.0",
15
+ "node-fetch": "^3.2.6",
16
+ "ping-monitor": "^0.7.0"
17
+ }
6
18
  }
package/replit.nix ADDED
@@ -0,0 +1,8 @@
1
+ { pkgs }: {
2
+ deps = [
3
+ pkgs.nodejs-18_x
4
+ pkgs.nodePackages.typescript-language-server
5
+ pkgs.yarn
6
+ pkgs.replitPackages.jest
7
+ ];
8
+ }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=selfpinger for more information.