@platformatic/basic 2.22.0 → 2.23.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.
- package/index.js +3 -3
- package/lib/utils.js +1 -1
- package/lib/worker/child-manager.js +2 -2
- package/package.json +8 -7
- package/schema.json +1 -1
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { createRequire } from '@platformatic/utils'
|
|
1
2
|
import { existsSync } from 'node:fs'
|
|
2
3
|
import { readFile } from 'node:fs/promises'
|
|
3
|
-
import { createRequire } from 'node:module'
|
|
4
4
|
import { relative, resolve } from 'node:path'
|
|
5
5
|
import { workerData } from 'node:worker_threads'
|
|
6
6
|
import pino from 'pino'
|
|
@@ -37,7 +37,7 @@ function isImportFailedError (error, pkg) {
|
|
|
37
37
|
return match?.[1] === pkg || error.requireStack?.[0].endsWith(importStackablePackageMarker)
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
async function importStackablePackage (opts, pkg
|
|
40
|
+
async function importStackablePackage (opts, pkg) {
|
|
41
41
|
try {
|
|
42
42
|
try {
|
|
43
43
|
// Try regular import
|
|
@@ -105,7 +105,7 @@ async function buildStackable (opts) {
|
|
|
105
105
|
toImport = '@platformatic/astro'
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
const imported = await importStackablePackage(opts, toImport
|
|
108
|
+
const imported = await importStackablePackage(opts, toImport)
|
|
109
109
|
|
|
110
110
|
const serviceRoot = relative(process.cwd(), opts.context.directory)
|
|
111
111
|
if (
|
package/lib/utils.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ITC } from '@platformatic/itc'
|
|
2
|
-
import { createDirectory, ensureLoggableError } from '@platformatic/utils'
|
|
2
|
+
import { createDirectory, createRequire, ensureLoggableError } from '@platformatic/utils'
|
|
3
3
|
import { once } from 'node:events'
|
|
4
4
|
import { rm, writeFile } from 'node:fs/promises'
|
|
5
5
|
import { createServer } from 'node:http'
|
|
6
|
-
import {
|
|
6
|
+
import { register } from 'node:module'
|
|
7
7
|
import { platform, tmpdir } from 'node:os'
|
|
8
8
|
import { dirname, join, resolve } from 'node:path'
|
|
9
9
|
import { pathToFileURL } from 'node:url'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,19 +23,20 @@
|
|
|
23
23
|
"split2": "^4.2.0",
|
|
24
24
|
"undici": "^7.0.0",
|
|
25
25
|
"ws": "^8.18.0",
|
|
26
|
-
"@platformatic/config": "2.
|
|
27
|
-
"@platformatic/
|
|
28
|
-
"@platformatic/
|
|
29
|
-
"@platformatic/utils": "2.
|
|
30
|
-
"@platformatic/telemetry": "2.
|
|
26
|
+
"@platformatic/config": "2.23.0",
|
|
27
|
+
"@platformatic/metrics": "2.23.0",
|
|
28
|
+
"@platformatic/itc": "2.23.0",
|
|
29
|
+
"@platformatic/utils": "2.23.0",
|
|
30
|
+
"@platformatic/telemetry": "2.23.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"borp": "^0.19.0",
|
|
34
34
|
"eslint": "9",
|
|
35
35
|
"express": "^4.19.2",
|
|
36
36
|
"fastify": "^5.0.0",
|
|
37
|
+
"get-port": "^7.1.0",
|
|
37
38
|
"json-schema-to-typescript": "^15.0.0",
|
|
38
|
-
"neostandard": "^0.
|
|
39
|
+
"neostandard": "^0.12.0",
|
|
39
40
|
"next": "^15.0.0",
|
|
40
41
|
"react": "^18.3.1",
|
|
41
42
|
"react-dom": "^18.3.1",
|
package/schema.json
CHANGED