@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.
Files changed (80) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/node_modules/@aws/lsp-fqn/tsconfig.tsbuildinfo +1 -1
  3. package/out/language-server/chat/contexts/documentContext.test.js +0 -25
  4. package/out/language-server/chat/contexts/documentContext.test.js.map +1 -1
  5. package/out/language-server/chat/contexts/triggerContext.d.ts +2 -0
  6. package/out/language-server/chat/contexts/triggerContext.js +9 -4
  7. package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
  8. package/out/language-server/chat/contexts/triggerContexts.test.d.ts +1 -0
  9. package/out/language-server/chat/contexts/triggerContexts.test.js +82 -0
  10. package/out/language-server/chat/contexts/triggerContexts.test.js.map +1 -0
  11. package/out/language-server/chat/contexts/utils.js +0 -3
  12. package/out/language-server/chat/contexts/utils.js.map +1 -1
  13. package/out/language-server/netTransform/converter.d.ts +4 -2
  14. package/out/language-server/netTransform/converter.js +52 -32
  15. package/out/language-server/netTransform/converter.js.map +1 -1
  16. package/out/language-server/netTransform/tests/converter.test.js +117 -3
  17. package/out/language-server/netTransform/tests/converter.test.js.map +1 -1
  18. package/out/language-server/netTransform/transformHandler.js +1 -1
  19. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  20. package/package.json +1 -1
  21. package/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE +0 -201
  22. package/node_modules/@aws-sdk/middleware-recursion-detection/README.md +0 -10
  23. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +0 -39
  24. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +0 -34
  25. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +0 -18
  26. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +0 -18
  27. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +0 -59
  28. package/node_modules/@aws-sdk/middleware-user-agent/LICENSE +0 -201
  29. package/node_modules/@aws-sdk/middleware-user-agent/README.md +0 -4
  30. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +0 -10
  31. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +0 -10
  32. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +0 -5
  33. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +0 -79
  34. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +0 -6
  35. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +0 -7
  36. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js +0 -2
  37. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +0 -72
  38. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +0 -31
  39. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/constants.d.ts +0 -7
  40. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/index.d.ts +0 -2
  41. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts +0 -17
  42. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/constants.d.ts +0 -7
  43. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/index.d.ts +0 -2
  44. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts +0 -20
  45. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +0 -17
  46. package/node_modules/@aws-sdk/middleware-user-agent/package.json +0 -61
  47. package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
  48. package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
  49. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -41
  50. package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
  51. package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +0 -6
  52. package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +0 -1
  53. package/node_modules/@aws-sdk/util-locate-window/package.json +0 -52
  54. package/node_modules/@smithy/util-utf8/LICENSE +0 -201
  55. package/node_modules/@smithy/util-utf8/README.md +0 -4
  56. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  57. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  58. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
  59. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  60. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  61. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  62. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
  63. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
  64. package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
  65. package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
  66. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
  67. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
  68. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
  69. package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
  70. package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
  71. package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
  72. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
  73. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
  74. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
  75. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
  76. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
  77. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
  78. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
  79. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
  80. 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,3 +0,0 @@
1
- export * from "./fromUtf8";
2
- export * from "./toUint8Array";
3
- export * from "./toUtf8";
@@ -1 +0,0 @@
1
- export declare const toUint8Array: (data: string | ArrayBuffer | ArrayBufferView) => Uint8Array;
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
- * a string is received instead of a Uint8Array.
5
- *
6
- */
7
- export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
- * a string is received instead of a Uint8Array.
5
- *
6
- */
7
- export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1 +0,0 @@
1
- export declare const fromUtf8: (input: string) => Uint8Array;
@@ -1 +0,0 @@
1
- export declare const fromUtf8: (input: string) => Uint8Array;
@@ -1,3 +0,0 @@
1
- export * from "./fromUtf8";
2
- export * from "./toUint8Array";
3
- export * from "./toUtf8";
@@ -1 +0,0 @@
1
- export declare const toUint8Array: (data: string | ArrayBuffer | ArrayBufferView) => Uint8Array;
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
- * a string is received instead of a Uint8Array.
5
- *
6
- */
7
- export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
- * a string is received instead of a Uint8Array.
5
- *
6
- */
7
- export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -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
- }