@certik/skynet 0.22.0 → 0.22.2

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 (102) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build.ts +23 -0
  3. package/bun.lockb +0 -0
  4. package/dist/abi.d.ts +1 -2
  5. package/dist/abi.js +1 -46
  6. package/dist/address.d.ts +0 -1
  7. package/dist/address.js +1 -46
  8. package/dist/api.d.ts +0 -1
  9. package/dist/api.js +100 -35013
  10. package/dist/app.d.ts +1 -2
  11. package/dist/app.js +1185 -70817
  12. package/dist/availability.d.ts +0 -1
  13. package/dist/availability.js +7 -800
  14. package/dist/cli.d.ts +0 -1
  15. package/dist/cli.js +1 -46
  16. package/dist/const.d.ts +0 -1
  17. package/dist/const.js +2 -47
  18. package/dist/databricks.d.ts +0 -1
  19. package/dist/databricks.js +12 -84724
  20. package/dist/date.d.ts +0 -1
  21. package/dist/date.js +2 -47
  22. package/dist/deploy.d.ts +0 -1
  23. package/dist/deploy.js +27 -16944
  24. package/dist/dynamodb.d.ts +3 -4
  25. package/dist/dynamodb.js +146 -27032
  26. package/dist/env.d.ts +2 -3
  27. package/dist/env.js +1 -46
  28. package/dist/graphql.d.ts +0 -1
  29. package/dist/graphql.js +1 -46
  30. package/dist/indexer.d.ts +0 -1
  31. package/dist/indexer.js +552 -36430
  32. package/dist/log.d.ts +0 -1
  33. package/dist/log.js +1 -46
  34. package/dist/object-hash.d.ts +0 -1
  35. package/dist/object-hash.js +3 -388
  36. package/dist/opsgenie.d.ts +1 -1
  37. package/dist/opsgenie.js +3 -284
  38. package/dist/por.d.ts +0 -1
  39. package/dist/por.js +1 -45
  40. package/dist/s3.d.ts +7 -8
  41. package/dist/s3.js +27 -28783
  42. package/dist/search.d.ts +0 -1
  43. package/dist/search.js +6 -37655
  44. package/dist/selector.d.ts +0 -1
  45. package/dist/selector.js +1 -46
  46. package/dist/slack.d.ts +0 -1
  47. package/dist/slack.js +3 -16815
  48. package/dist/util.d.ts +0 -1
  49. package/dist/util.js +1 -46
  50. package/examples/api.ts +1 -1
  51. package/examples/indexer.ts +1 -1
  52. package/examples/mode-indexer.ts +1 -1
  53. package/package.json +4 -3
  54. package/{graphql.ts → src/graphql.ts} +1 -1
  55. package/{opsgenie.ts → src/opsgenie.ts} +2 -1
  56. package/tsconfig.build.json +2 -6
  57. package/tsconfig.json +11 -20
  58. package/dist/abi.d.ts.map +0 -1
  59. package/dist/address.d.ts.map +0 -1
  60. package/dist/api.d.ts.map +0 -1
  61. package/dist/app.d.ts.map +0 -1
  62. package/dist/availability.d.ts.map +0 -1
  63. package/dist/cli.d.ts.map +0 -1
  64. package/dist/const.d.ts.map +0 -1
  65. package/dist/databricks.d.ts.map +0 -1
  66. package/dist/date.d.ts.map +0 -1
  67. package/dist/deploy.d.ts.map +0 -1
  68. package/dist/dynamodb.d.ts.map +0 -1
  69. package/dist/env.d.ts.map +0 -1
  70. package/dist/graphql.d.ts.map +0 -1
  71. package/dist/indexer.d.ts.map +0 -1
  72. package/dist/log.d.ts.map +0 -1
  73. package/dist/object-hash.d.ts.map +0 -1
  74. package/dist/opsgenie.d.ts.map +0 -1
  75. package/dist/por.d.ts.map +0 -1
  76. package/dist/s3.d.ts.map +0 -1
  77. package/dist/search.d.ts.map +0 -1
  78. package/dist/selector.d.ts.map +0 -1
  79. package/dist/slack.d.ts.map +0 -1
  80. package/dist/util.d.ts.map +0 -1
  81. package/dist/xxhash.win32-x64-msvc-hrdz34v7.node +0 -0
  82. /package/{abi.ts → src/abi.ts} +0 -0
  83. /package/{address.ts → src/address.ts} +0 -0
  84. /package/{api.ts → src/api.ts} +0 -0
  85. /package/{app.ts → src/app.ts} +0 -0
  86. /package/{availability.ts → src/availability.ts} +0 -0
  87. /package/{cli.ts → src/cli.ts} +0 -0
  88. /package/{const.ts → src/const.ts} +0 -0
  89. /package/{databricks.ts → src/databricks.ts} +0 -0
  90. /package/{date.ts → src/date.ts} +0 -0
  91. /package/{deploy.ts → src/deploy.ts} +0 -0
  92. /package/{dynamodb.ts → src/dynamodb.ts} +0 -0
  93. /package/{env.ts → src/env.ts} +0 -0
  94. /package/{indexer.ts → src/indexer.ts} +0 -0
  95. /package/{log.ts → src/log.ts} +0 -0
  96. /package/{object-hash.ts → src/object-hash.ts} +0 -0
  97. /package/{por.ts → src/por.ts} +0 -0
  98. /package/{s3.ts → src/s3.ts} +0 -0
  99. /package/{search.ts → src/search.ts} +0 -0
  100. /package/{selector.ts → src/selector.ts} +0 -0
  101. /package/{slack.ts → src/slack.ts} +0 -0
  102. /package/{util.ts → src/util.ts} +0 -0
package/dist/env.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- declare function ensureAndGet(envName: string, defaultValue?: string): string;
2
- declare function getEnvironment(): string;
1
+ declare function ensureAndGet(envName: string, defaultValue?: string): string | undefined;
2
+ declare function getEnvironment(): string | undefined;
3
3
  declare function getEnvOrThrow(envName: string): string;
4
4
  declare function isProduction(): boolean;
5
5
  declare function isDev(): boolean;
6
6
  export { ensureAndGet, getEnvOrThrow, getEnvironment, isProduction, isDev };
7
- //# sourceMappingURL=env.d.ts.map
package/dist/env.js CHANGED
@@ -1,49 +1,4 @@
1
- // @bun
2
- var __create = Object.create;
3
- var __getProtoOf = Object.getPrototypeOf;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __toESM = (mod, isNodeMode, target) => {
9
- target = mod != null ? __create(__getProtoOf(mod)) : {};
10
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
11
- for (let key of __getOwnPropNames(mod))
12
- if (!__hasOwnProp.call(to, key))
13
- __defProp(to, key, {
14
- get: () => mod[key],
15
- enumerable: true
16
- });
17
- return to;
18
- };
19
- var __moduleCache = /* @__PURE__ */ new WeakMap;
20
- var __toCommonJS = (from) => {
21
- var entry = __moduleCache.get(from), desc;
22
- if (entry)
23
- return entry;
24
- entry = __defProp({}, "__esModule", { value: true });
25
- if (from && typeof from === "object" || typeof from === "function")
26
- __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
27
- get: () => from[key],
28
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29
- }));
30
- __moduleCache.set(from, entry);
31
- return entry;
32
- };
33
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
34
- var __export = (target, all) => {
35
- for (var name in all)
36
- __defProp(target, name, {
37
- get: all[name],
38
- enumerable: true,
39
- configurable: true,
40
- set: (newValue) => all[name] = () => newValue
41
- });
42
- };
43
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
44
- var __require = import.meta.require;
45
-
46
- // env.ts
1
+ // src/env.ts
47
2
  function ensureAndGet(envName, defaultValue) {
48
3
  return process.env[envName] || defaultValue;
49
4
  }
package/dist/graphql.d.ts CHANGED
@@ -3,4 +3,3 @@ type GraphqlVariables = {
3
3
  };
4
4
  export declare function gql<T>(query: string, variables?: GraphqlVariables): Promise<T>;
5
5
  export {};
6
- //# sourceMappingURL=graphql.d.ts.map
package/dist/graphql.js CHANGED
@@ -1,49 +1,4 @@
1
- // @bun
2
- var __create = Object.create;
3
- var __getProtoOf = Object.getPrototypeOf;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __toESM = (mod, isNodeMode, target) => {
9
- target = mod != null ? __create(__getProtoOf(mod)) : {};
10
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
11
- for (let key of __getOwnPropNames(mod))
12
- if (!__hasOwnProp.call(to, key))
13
- __defProp(to, key, {
14
- get: () => mod[key],
15
- enumerable: true
16
- });
17
- return to;
18
- };
19
- var __moduleCache = /* @__PURE__ */ new WeakMap;
20
- var __toCommonJS = (from) => {
21
- var entry = __moduleCache.get(from), desc;
22
- if (entry)
23
- return entry;
24
- entry = __defProp({}, "__esModule", { value: true });
25
- if (from && typeof from === "object" || typeof from === "function")
26
- __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
27
- get: () => from[key],
28
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29
- }));
30
- __moduleCache.set(from, entry);
31
- return entry;
32
- };
33
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
34
- var __export = (target, all) => {
35
- for (var name in all)
36
- __defProp(target, name, {
37
- get: all[name],
38
- enumerable: true,
39
- configurable: true,
40
- set: (newValue) => all[name] = () => newValue
41
- });
42
- };
43
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
44
- var __require = import.meta.require;
45
-
46
- // graphql.ts
1
+ // src/graphql.ts
47
2
  async function gql(query, variables = {}) {
48
3
  const endpoint = process.env["SKYNET_GRAPHQL_ENDPOINT"];
49
4
  const apiKey = process.env["SKYNET_GRAPHQL_API_KEY"];
package/dist/indexer.d.ts CHANGED
@@ -67,4 +67,3 @@ declare function createIndexerApp<TSelector extends Selector>({ binaryName, sele
67
67
  };
68
68
  export { increaseId, createModeIndexerApp, createIndexerApp };
69
69
  export type { IndexerStateValue, State, StatelessBuildFunction, ModeBuildFunction, ValidateFunction };
70
- //# sourceMappingURL=indexer.d.ts.map