@certik/skynet 0.19.1 → 0.19.3
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/.vscode/settings.json +5 -0
- package/CHANGELOG.md +10 -0
- package/api.ts +1 -1
- package/app.ts +1 -1
- package/examples/api.ts +0 -0
- package/examples/indexer.ts +0 -0
- package/examples/mode-indexer.ts +0 -0
- package/package.json +21 -22
- package/search.ts +2 -1
- package/bun.lockb +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.19.3
|
|
4
|
+
|
|
5
|
+
- Fix elastic search not working in bun
|
|
6
|
+
- Update packages
|
|
7
|
+
|
|
8
|
+
## 0.19.2
|
|
9
|
+
|
|
10
|
+
- Updated: type of `apiKey` in `Serve` and `ServeDefinition` types
|
|
11
|
+
|
|
3
12
|
## 0.19.1
|
|
13
|
+
|
|
4
14
|
- Fixed: the domain that nomad api prints in console on start
|
|
5
15
|
|
|
6
16
|
## 0.19.0
|
package/api.ts
CHANGED
package/app.ts
CHANGED
package/examples/api.ts
CHANGED
|
File without changes
|
package/examples/indexer.ts
CHANGED
|
File without changes
|
package/examples/mode-indexer.ts
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@certik/skynet",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"description": "Skynet Shared JS library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -15,37 +15,36 @@
|
|
|
15
15
|
"node": ">= 18"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
19
|
-
"@aws-sdk/client-s3": "^3.
|
|
20
|
-
"@aws-sdk/client-sqs": "^3.
|
|
21
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
18
|
+
"@aws-sdk/client-dynamodb": "^3.758.0",
|
|
19
|
+
"@aws-sdk/client-s3": "^3.758.0",
|
|
20
|
+
"@aws-sdk/client-sqs": "^3.758.0",
|
|
21
|
+
"@aws-sdk/lib-dynamodb": "^3.758.0",
|
|
22
22
|
"@databricks/sql": "^1.9.0",
|
|
23
|
-
"@elastic/elasticsearch": "^8.
|
|
24
|
-
"@slack/web-api": "^6.
|
|
25
|
-
"chalk": "^5.
|
|
26
|
-
"execa": "^9.
|
|
23
|
+
"@elastic/elasticsearch": "^8.17.1",
|
|
24
|
+
"@slack/web-api": "^6.13.0",
|
|
25
|
+
"chalk": "^5.4.1",
|
|
26
|
+
"execa": "^9.5.2",
|
|
27
27
|
"express": "^4.21.2",
|
|
28
28
|
"md5": "^2.3.0",
|
|
29
29
|
"meow": "^13.2.0",
|
|
30
|
-
"snowflake-sdk": "^1.
|
|
31
|
-
"type-fest": "^4.
|
|
32
|
-
"web3": "^4.
|
|
33
|
-
"which": "^
|
|
30
|
+
"snowflake-sdk": "^1.15.0",
|
|
31
|
+
"type-fest": "^4.35.0",
|
|
32
|
+
"web3": "^4.16.0",
|
|
33
|
+
"which": "^5.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@eslint/js": "^9.
|
|
37
|
-
"@types/bun": "^1.
|
|
36
|
+
"@eslint/js": "^9.21.0",
|
|
37
|
+
"@types/bun": "^1.2.4",
|
|
38
38
|
"@types/express": "^5.0.0",
|
|
39
39
|
"@types/md5": "^2.3.5",
|
|
40
40
|
"@types/which": "^3.0.4",
|
|
41
|
-
"eslint": "^9.
|
|
42
|
-
"eslint-plugin-import": "^2.
|
|
41
|
+
"eslint": "^9.21.0",
|
|
42
|
+
"eslint-plugin-import": "^2.31.0",
|
|
43
43
|
"eslint-plugin-md": "^1.0.19",
|
|
44
|
-
"eslint-plugin-prettier": "^5.
|
|
45
|
-
"prettier": "^3.
|
|
46
|
-
"
|
|
47
|
-
"typescript": "^
|
|
48
|
-
"typescript-eslint": "^8.18.1"
|
|
44
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
45
|
+
"prettier": "^3.5.2",
|
|
46
|
+
"typescript": "^5.8.2",
|
|
47
|
+
"typescript-eslint": "^8.25.0"
|
|
49
48
|
},
|
|
50
49
|
"license": "MIT",
|
|
51
50
|
"publishConfig": {
|
package/search.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isProduction } from "./env.ts";
|
|
2
2
|
import { inline } from "./log.ts";
|
|
3
|
-
import { Client } from "@elastic/elasticsearch";
|
|
3
|
+
import { Client, HttpConnection } from "@elastic/elasticsearch";
|
|
4
4
|
import osModule from "os";
|
|
5
5
|
|
|
6
6
|
type ElasticSearchRecord = {
|
|
@@ -15,6 +15,7 @@ export async function sendToSearch(indexPrefix: string, record: ElasticSearchRec
|
|
|
15
15
|
const client = new Client({
|
|
16
16
|
cloud: { id: process.env["SKYNET_ELASTICSEARCH_CLOUD_ID"] },
|
|
17
17
|
auth: { apiKey: process.env["SKYNET_ELASTICSEARCH_API_KEY"] },
|
|
18
|
+
Connection: HttpConnection, // bun compatibility, see https://github.com/oven-sh/bun/issues/7920
|
|
18
19
|
});
|
|
19
20
|
|
|
20
21
|
const now = new Date();
|
package/bun.lockb
DELETED
|
Binary file
|