sqlite-hello 0.1.0-alpha.78 → 0.1.0-alpha.82
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/README.md +0 -0
- package/index.cjs +8 -8
- package/index.d.ts +2 -2
- package/index.mjs +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
File without changes
|
package/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
const {
|
|
4
|
-
const {
|
|
5
|
-
const {
|
|
6
|
-
const {
|
|
3
|
+
const { join } = require("node:path");
|
|
4
|
+
const { fileURLToPath } = require("node:url");
|
|
5
|
+
const { arch, platform } = require("node:process");
|
|
6
|
+
const { statSync } = require("node:fs");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
const BASE_PACKAGE_NAME = "sqlite-hello";
|
|
10
|
-
const ENTRYPOINT_BASE_NAME = "
|
|
11
|
-
const supportedPlatforms = [["macos","aarch64"],["
|
|
10
|
+
const ENTRYPOINT_BASE_NAME = "hello0";
|
|
11
|
+
const supportedPlatforms = [["macos","aarch64"],["linux","aarch64"],["macos","x86_64"],["windows","x86_64"],["linux","x86_64"]];
|
|
12
12
|
|
|
13
13
|
const invalidPlatformErrorMessage = `Unsupported platform for ${BASE_PACKAGE_NAME}, on a ${platform}-${arch} machine. Supported platforms are (${supportedPlatforms
|
|
14
14
|
.map(([p, a]) => `${p}-${a}`)
|
|
@@ -39,7 +39,7 @@ function getLoadablePath() {
|
|
|
39
39
|
}
|
|
40
40
|
const packageName = platformPackageName(platform, arch);
|
|
41
41
|
const loadablePath = join(
|
|
42
|
-
|
|
42
|
+
__dirname,
|
|
43
43
|
"..",
|
|
44
44
|
packageName,
|
|
45
45
|
`${ENTRYPOINT_BASE_NAME}.${extensionSuffix(platform)}`
|
|
@@ -55,4 +55,4 @@ function load(db) {
|
|
|
55
55
|
db.loadExtension(getLoadablePath());
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
module.exports = {
|
|
58
|
+
module.exports = {getLoadablePath, load};
|
package/index.d.ts
CHANGED
package/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { arch, platform } from "node:process";
|
|
6
|
+
import { statSync } from "node:fs";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
const BASE_PACKAGE_NAME = "sqlite-hello";
|
|
10
|
-
const ENTRYPOINT_BASE_NAME = "
|
|
11
|
-
const supportedPlatforms = [["macos","aarch64"],["
|
|
10
|
+
const ENTRYPOINT_BASE_NAME = "hello0";
|
|
11
|
+
const supportedPlatforms = [["macos","aarch64"],["linux","aarch64"],["macos","x86_64"],["windows","x86_64"],["linux","x86_64"]];
|
|
12
12
|
|
|
13
13
|
const invalidPlatformErrorMessage = `Unsupported platform for ${BASE_PACKAGE_NAME}, on a ${platform}-${arch} machine. Supported platforms are (${supportedPlatforms
|
|
14
14
|
.map(([p, a]) => `${p}-${a}`)
|
|
@@ -39,7 +39,7 @@ function getLoadablePath() {
|
|
|
39
39
|
}
|
|
40
40
|
const packageName = platformPackageName(platform, arch);
|
|
41
41
|
const loadablePath = join(
|
|
42
|
-
fileURLToPath(new URL(".", import.meta.url)),
|
|
42
|
+
fileURLToPath(new URL(join("."), import.meta.url)),
|
|
43
43
|
"..",
|
|
44
44
|
packageName,
|
|
45
45
|
`${ENTRYPOINT_BASE_NAME}.${extensionSuffix(platform)}`
|
|
@@ -55,4 +55,4 @@ function load(db) {
|
|
|
55
55
|
db.loadExtension(getLoadablePath());
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export {
|
|
58
|
+
export {getLoadablePath, load};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"sqlite-hello","version":"0.1.0-alpha.
|
|
1
|
+
{"name":"sqlite-hello","version":"0.1.0-alpha.82","author":"Alex Garcia","license":"MIT OR Apache","description":"A hello SQLite extension to test sqlite-dist.","repository":{"type":"git","url":"https://github.com/asg017/sqlite-hello","directory":null},"main":"./index.cjs","module":"./index.mjs","types":"./index.d.ts","exports":{".":{"require":"./index.cjs","import":"./index.mjs","types":"./index.d.ts"}},"files":[],"keywords":[],"optionalDependencies":{"sqlite-hello-darwin-x64":"0.1.0-alpha.82","sqlite-hello-linux-x64":"0.1.0-alpha.82","sqlite-hello-windows-x64":"0.1.0-alpha.82","sqlite-hello-darwin-arm64":"0.1.0-alpha.82","sqlite-hello-linux-arm64":"0.1.0-alpha.82"}}
|