@datamini/asktable-cli 0.0.1 → 0.1.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.
Files changed (2) hide show
  1. package/dist/asktable.js +4 -22
  2. package/package.json +1 -1
package/dist/asktable.js CHANGED
@@ -5,43 +5,25 @@ var __getProtoOf = Object.getPrototypeOf;
5
5
  var __defProp = Object.defineProperty;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- function __accessProp(key) {
9
- return this[key];
10
- }
11
- var __toESMCache_node;
12
- var __toESMCache_esm;
13
8
  var __toESM = (mod, isNodeMode, target) => {
14
- var canCache = mod != null && typeof mod === "object";
15
- if (canCache) {
16
- var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
17
- var cached = cache.get(mod);
18
- if (cached)
19
- return cached;
20
- }
21
9
  target = mod != null ? __create(__getProtoOf(mod)) : {};
22
10
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
23
11
  for (let key of __getOwnPropNames(mod))
24
12
  if (!__hasOwnProp.call(to, key))
25
13
  __defProp(to, key, {
26
- get: __accessProp.bind(mod, key),
14
+ get: () => mod[key],
27
15
  enumerable: true
28
16
  });
29
- if (canCache)
30
- cache.set(mod, to);
31
17
  return to;
32
18
  };
33
19
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
34
- var __returnValue = (v) => v;
35
- function __exportSetter(name, newValue) {
36
- this[name] = __returnValue.bind(null, newValue);
37
- }
38
20
  var __export = (target, all) => {
39
21
  for (var name in all)
40
22
  __defProp(target, name, {
41
23
  get: all[name],
42
24
  enumerable: true,
43
25
  configurable: true,
44
- set: __exportSetter.bind(all, name)
26
+ set: (newValue) => all[name] = () => newValue
45
27
  });
46
28
  };
47
29
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
@@ -2223,7 +2205,7 @@ var init_hook_engine = __esm(() => {
2223
2205
  import { AsyncResource as AsyncResource2 } from "node:async_hooks";
2224
2206
  function useState(defaultValue) {
2225
2207
  return withPointer((pointer) => {
2226
- const setState = AsyncResource2.bind(function setState2(newValue) {
2208
+ const setState = AsyncResource2.bind(function setState(newValue) {
2227
2209
  if (pointer.get() !== newValue) {
2228
2210
  pointer.set(newValue);
2229
2211
  handleChange();
@@ -15904,7 +15886,7 @@ function makeProjectCommand(getClient, isJson) {
15904
15886
 
15905
15887
  // src/index.ts
15906
15888
  var program2 = new Command;
15907
- program2.name("asktable").description("AskTable CLI").version("0.0.1").option("--api-key <key>", "覆盖 API Key").option("--server <url>", "覆盖 Server URL").option("--json", "JSON 输出", false).option("--verbose", "打印请求详情", false);
15889
+ program2.name("asktable").description("AskTable CLI").version("0.1.0").option("--api-key <key>", "覆盖 API Key").option("--server <url>", "覆盖 Server URL").option("--json", "JSON 输出", false).option("--verbose", "打印请求详情", false);
15908
15890
  function getClient() {
15909
15891
  const opts = program2.opts();
15910
15892
  const config = loadConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datamini/asktable-cli",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "asktable": "dist/asktable.js"