puppyperpetual 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.
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "puppyperpetual",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "description": "Run stuff FOREVER! PERPETUALLY!",
6
- "main": "perpetual.js",
6
+ "main": "./src/index.js",
7
+ "exports": {
8
+ ".": "./src/index.js"
9
+ },
7
10
  "keywords": [
8
11
  "perpetual",
9
12
  "process-manager",
@@ -7,7 +7,7 @@ export class ConfigManager {
7
7
  this.rootDir = rootDir;
8
8
  this.serverName = serverName;
9
9
 
10
- this.defaultConfigPath = path.join(rootDir, 'src', 'defaultconfig.yaml');
10
+ this.defaultConfigPath = path.join('src', 'defaultconfig.yaml');
11
11
  this.configPath = path.join(rootDir, 'store', 'config.yaml');
12
12
 
13
13
  this.ensureConfigExists();
package/src/test/test.js DELETED
@@ -1,10 +0,0 @@
1
- import Perpetual from '../index.js';
2
-
3
- const perpetual = new Perpetual('test_process', {
4
- // process_cmd: 'node ./src/test/test_process.js',
5
- process_cmd: 'date',
6
- webhook_url: 'https://discord.com/api/webhooks/1460782220192256031/Fkibsumk3hWg4M6F2eCmDe_ylXaJlY_z3W9XeCMWbiw4r8zcYfQJg64YeIhaHT-7tpbT',
7
- dailyrestart_enable: true,
8
- dailyrestart_time: ['15:26', '15:27', '15:28', '15:29', '15:30', '15:31', '20:00'],
9
- })
10
- await perpetual.run();
@@ -1,10 +0,0 @@
1
- import log from 'puppylog';
2
-
3
- (async () => {
4
- let count = 0;
5
- while (true) {
6
- log.success("Hello, world!", count++);
7
- if (count == 10) throw new Error("Test error to check error handling");
8
- await new Promise(resolve => setTimeout(resolve, 1000));
9
- };
10
- })();