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 CHANGED
File without changes
package/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
 
2
2
 
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");
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 = "hola0";
11
- const supportedPlatforms = [["macos","aarch64"],["windows","x86_64"],["linux","x86_64"],["macos","x86_64"]];
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
+ __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 = {{getLoadablePath, load}};
58
+ module.exports = {getLoadablePath, load};
package/index.d.ts CHANGED
@@ -6,9 +6,9 @@
6
6
  export declare function getLoadablePath(): string;
7
7
 
8
8
 
9
- interface Db {{
9
+ interface Db {
10
10
  loadExtension(file: string, entrypoint?: string | undefined): void;
11
- }}
11
+ }
12
12
 
13
13
  /**
14
14
  * TODO JSDoc
package/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
 
2
2
 
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";
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 = "hola0";
11
- const supportedPlatforms = [["macos","aarch64"],["windows","x86_64"],["linux","x86_64"],["macos","x86_64"]];
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 {{getLoadablePath, load}};
58
+ export {getLoadablePath, load};
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"sqlite-hello","version":"0.1.0-alpha.78","author":"Alex Garcia","license":"MIT OR Apache","description":"A hello SQLite extension to test sqlite-dist.","repository":{"type":"git","url":"https://TODO","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":[],"dependencies":null,"optionalDependencies":{"sqlite-hello-darwin-arm64":"0.1.0-alpha.78","sqlite-hello-windows-x64":"0.1.0-alpha.78","sqlite-hello-linux-x64":"0.1.0-alpha.78","sqlite-hello-darwin-x64":"0.1.0-alpha.78"},"devDependencies":null,"os":null,"cpu":null}
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"}}