@aws/lsp-codewhisperer 0.0.10 → 0.0.12
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/CHANGELOG.md +6 -0
- package/node_modules/@aws/lsp-fqn/tsconfig.tsbuildinfo +1 -1
- package/out/language-server/chat/contexts/documentContext.test.js +0 -25
- package/out/language-server/chat/contexts/documentContext.test.js.map +1 -1
- package/out/language-server/chat/contexts/triggerContext.d.ts +2 -0
- package/out/language-server/chat/contexts/triggerContext.js +9 -4
- package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
- package/out/language-server/chat/contexts/triggerContexts.test.d.ts +1 -0
- package/out/language-server/chat/contexts/triggerContexts.test.js +82 -0
- package/out/language-server/chat/contexts/triggerContexts.test.js.map +1 -0
- package/out/language-server/chat/contexts/utils.js +0 -3
- package/out/language-server/chat/contexts/utils.js.map +1 -1
- package/out/language-server/netTransform/converter.d.ts +4 -2
- package/out/language-server/netTransform/converter.js +52 -32
- package/out/language-server/netTransform/converter.js.map +1 -1
- package/out/language-server/netTransform/tests/converter.test.js +117 -3
- package/out/language-server/netTransform/tests/converter.test.js.map +1 -1
- package/out/language-server/netTransform/transformHandler.js +1 -1
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/package.json +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE +0 -201
- package/node_modules/@aws-sdk/middleware-recursion-detection/README.md +0 -10
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +0 -39
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +0 -34
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +0 -18
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +0 -18
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +0 -59
- package/node_modules/@aws-sdk/middleware-user-agent/LICENSE +0 -201
- package/node_modules/@aws-sdk/middleware-user-agent/README.md +0 -4
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +0 -10
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +0 -10
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +0 -5
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +0 -79
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +0 -6
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +0 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js +0 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +0 -72
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +0 -31
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/constants.d.ts +0 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/index.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts +0 -17
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/constants.d.ts +0 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/index.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts +0 -20
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +0 -17
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +0 -61
- package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
- package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -41
- package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
- package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +0 -6
- package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +0 -1
- package/node_modules/@aws-sdk/util-locate-window/package.json +0 -52
- package/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
- package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
- package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/package.json +0 -66
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { fromArrayBuffer } from "@smithy/util-buffer-from";
|
|
2
|
-
export const toUtf8 = (input) => {
|
|
3
|
-
if (typeof input === "string") {
|
|
4
|
-
return input;
|
|
5
|
-
}
|
|
6
|
-
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
7
|
-
throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
8
|
-
}
|
|
9
|
-
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fromUtf8: (input: string) => Uint8Array;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fromUtf8: (input: string) => Uint8Array;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const toUint8Array: (data: string | ArrayBuffer | ArrayBufferView) => Uint8Array;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fromUtf8: (input: string) => Uint8Array;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fromUtf8: (input: string) => Uint8Array;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const toUint8Array: (data: string | ArrayBuffer | ArrayBufferView) => Uint8Array;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@smithy/util-utf8",
|
|
3
|
-
"version": "2.3.0",
|
|
4
|
-
"description": "A UTF-8 string <-> UInt8Array converter",
|
|
5
|
-
"main": "./dist-cjs/index.js",
|
|
6
|
-
"module": "./dist-es/index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
9
|
-
"build:cjs": "node ../../scripts/inline util-utf8",
|
|
10
|
-
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
11
|
-
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
12
|
-
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
|
-
"stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
14
|
-
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
15
|
-
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
16
|
-
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
17
|
-
"test": "yarn g:jest"
|
|
18
|
-
},
|
|
19
|
-
"author": {
|
|
20
|
-
"name": "AWS SDK for JavaScript Team",
|
|
21
|
-
"url": "https://aws.amazon.com/javascript/"
|
|
22
|
-
},
|
|
23
|
-
"license": "Apache-2.0",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"@smithy/util-buffer-from": "^2.2.0",
|
|
26
|
-
"tslib": "^2.6.2"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@tsconfig/recommended": "1.0.1",
|
|
30
|
-
"concurrently": "7.0.0",
|
|
31
|
-
"downlevel-dts": "0.10.1",
|
|
32
|
-
"rimraf": "3.0.2",
|
|
33
|
-
"typedoc": "0.23.23"
|
|
34
|
-
},
|
|
35
|
-
"types": "./dist-types/index.d.ts",
|
|
36
|
-
"engines": {
|
|
37
|
-
"node": ">=14.0.0"
|
|
38
|
-
},
|
|
39
|
-
"typesVersions": {
|
|
40
|
-
"<4.0": {
|
|
41
|
-
"dist-types/*": [
|
|
42
|
-
"dist-types/ts3.4/*"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"files": [
|
|
47
|
-
"dist-*/**"
|
|
48
|
-
],
|
|
49
|
-
"browser": {
|
|
50
|
-
"./dist-es/fromUtf8": "./dist-es/fromUtf8.browser",
|
|
51
|
-
"./dist-es/toUtf8": "./dist-es/toUtf8.browser"
|
|
52
|
-
},
|
|
53
|
-
"react-native": {},
|
|
54
|
-
"homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-utf8",
|
|
55
|
-
"repository": {
|
|
56
|
-
"type": "git",
|
|
57
|
-
"url": "https://github.com/awslabs/smithy-typescript.git",
|
|
58
|
-
"directory": "packages/util-utf8"
|
|
59
|
-
},
|
|
60
|
-
"typedoc": {
|
|
61
|
-
"entryPoint": "src/index.ts"
|
|
62
|
-
},
|
|
63
|
-
"publishConfig": {
|
|
64
|
-
"directory": ".release/package"
|
|
65
|
-
}
|
|
66
|
-
}
|