@neon-rs/load 0.1.81 → 0.2.4

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -8
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.__UNSTABLE_proxy = exports.proxy = exports.__UNSTABLE_loader = exports.lazy = exports.bin = exports.currentTarget = exports.currentPlatform = void 0;
3
+ exports.currentPlatform = currentPlatform;
4
+ exports.currentTarget = currentTarget;
5
+ exports.bin = bin;
6
+ exports.lazy = lazy;
7
+ exports.__UNSTABLE_loader = __UNSTABLE_loader;
8
+ exports.proxy = proxy;
9
+ exports.__UNSTABLE_proxy = __UNSTABLE_proxy;
4
10
  function currentPlatform() {
5
11
  let os = null;
6
12
  switch (process.platform) {
@@ -57,12 +63,10 @@ function currentPlatform() {
57
63
  }
58
64
  throw new Error(`Neon: unsupported system: ${process.platform}`);
59
65
  }
60
- exports.currentPlatform = currentPlatform;
61
66
  // DEPRECATE(0.1)
62
67
  function currentTarget() {
63
68
  return currentPlatform();
64
69
  }
65
- exports.currentTarget = currentTarget;
66
70
  function isGlibc() {
67
71
  // Cast to unknown to work around a bug in the type definition:
68
72
  // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/40140
@@ -96,7 +100,6 @@ function* interleave(a1, a2) {
96
100
  function bin(scope, ...rest) {
97
101
  return [...interleave(scope, rest)].join("") + "/" + currentPlatform();
98
102
  }
99
- exports.bin = bin;
100
103
  // DEPRECATE(0.1)
101
104
  function lazyV1(loaders, exports) {
102
105
  return lazyV2({
@@ -149,7 +152,6 @@ function lazy(optionsOrLoaders, exports) {
149
152
  ? lazyV2(optionsOrLoaders)
150
153
  : lazyV1(optionsOrLoaders, exports);
151
154
  }
152
- exports.lazy = lazy;
153
155
  function __UNSTABLE_loader(loaders) {
154
156
  const platform = currentPlatform();
155
157
  if (!loaders.hasOwnProperty(platform)) {
@@ -165,7 +167,6 @@ function __UNSTABLE_loader(loaders) {
165
167
  return loaded;
166
168
  };
167
169
  }
168
- exports.__UNSTABLE_loader = __UNSTABLE_loader;
169
170
  // DEPRECATE(0.1)
170
171
  function isDeprecatedProxyOptions(options) {
171
172
  return 'targets' in options;
@@ -239,9 +240,7 @@ function proxy(options) {
239
240
  };
240
241
  return new Proxy({}, handler);
241
242
  }
242
- exports.proxy = proxy;
243
243
  // DEPRECATE(0.1)
244
244
  function __UNSTABLE_proxy(options) {
245
245
  return proxy(options);
246
246
  }
247
- exports.__UNSTABLE_proxy = __UNSTABLE_proxy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neon-rs/load",
3
- "version": "0.1.81",
3
+ "version": "0.2.4",
4
4
  "description": "Utilities for loading Neon modules.",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "git+https://github.com/dherman/neon-rs.git"
19
+ "url": "git+https://github.com/neon-bindings/neon-rs.git"
20
20
  },
21
21
  "keywords": [
22
22
  "Neon",
@@ -26,9 +26,9 @@
26
26
  "author": "Dave Herman <david.herman@gmail.com>",
27
27
  "license": "MIT",
28
28
  "bugs": {
29
- "url": "https://github.com/dherman/neon-rs/issues"
29
+ "url": "https://github.com/neon-bindings/neon-rs/issues"
30
30
  },
31
- "homepage": "https://github.com/dherman/neon-rs#readme",
31
+ "homepage": "https://github.com/neon-bindings/neon-rs#readme",
32
32
  "devDependencies": {
33
33
  "@tsconfig/node16": "^16.1.1",
34
34
  "@types/node": "^18.15.11",