ag-common 0.0.894 → 0.0.895

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.
@@ -1,5 +1,5 @@
1
+ import { type DynamoDBClientConfig } from '@aws-sdk/client-dynamodb';
1
2
  import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';
2
- import type { AwsCredentialIdentity } from '@smithy/types';
3
3
  import * as getOps from './get';
4
4
  export declare let dynamoDb: DynamoDBDocument;
5
5
  /**
@@ -8,7 +8,7 @@ export declare let dynamoDb: DynamoDBDocument;
8
8
  * @param credentials - Optional AWS credentials
9
9
  * @returns Configured DynamoDBDocument client
10
10
  */
11
- export declare const setDynamo: (region: string, credentials?: AwsCredentialIdentity) => DynamoDBDocument;
11
+ export declare const setDynamo: (region: string, credentials?: DynamoDBClientConfig["credentials"]) => DynamoDBDocument;
12
12
  export declare const getItemDynamo: <T>(params: {
13
13
  tableName: string;
14
14
  pkName: string;
@@ -1,5 +1,5 @@
1
+ import type { GetObjectCommandOutput } from '@aws-sdk/client-s3';
1
2
  import { S3Client } from '@aws-sdk/client-s3';
2
- import type { StreamingBlobPayloadOutputTypes } from '@smithy/types';
3
3
  import type { Buffer } from 'buffer';
4
4
  export type StorageProvider = 's3' | 'r2';
5
5
  export type StorageConfig = {
@@ -32,7 +32,7 @@ export declare const getS3Object: ({ fileurl: { Bucket, Key }, }: {
32
32
  export interface IS3Object {
33
33
  bucket: string;
34
34
  key: string;
35
- content: StreamingBlobPayloadOutputTypes;
35
+ content: NonNullable<GetObjectCommandOutput['Body']>;
36
36
  }
37
37
  /** function generator to get s3 files */
38
38
  export declare function getS3Objects({ bucket, keys, }: {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.894",
2
+ "version": "0.0.895",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
@@ -10,23 +10,6 @@
10
10
  "url": "https://github.com/andreigec/ag-common.git"
11
11
  },
12
12
  "dependencies": {
13
- "@tailwindcss/postcss": "~4.2.2",
14
- "autoprefixer": "~10.5.0",
15
- "class-variance-authority": "~0.7.1",
16
- "clsx": "~2.1.1",
17
- "cross-env": "~10.1.0",
18
- "eslint": "~10.2.1",
19
- "eslint-config-e7npm": "~0.1.39",
20
- "lucide-react": "~1.8.0",
21
- "react": "~19.2.5",
22
- "react-dom": "~19.2.5",
23
- "tailwind-merge": "~3.5.0",
24
- "tailwindcss": "~4.2.2",
25
- "tailwindcss-animate": "~1.0.7",
26
- "tsx": "~4.21.0",
27
- "typescript": "~6.0.3"
28
- },
29
- "devDependencies": {
30
13
  "@aws-sdk/client-acm": "~3.1032.0",
31
14
  "@aws-sdk/client-apigatewaymanagementapi": "~3.1032.0",
32
15
  "@aws-sdk/client-dynamodb": "~3.1032.0",
@@ -50,33 +33,40 @@
50
33
  "@radix-ui/react-radio-group": "~1.3.8",
51
34
  "@radix-ui/react-scroll-area": "~1.2.10",
52
35
  "@radix-ui/react-select": "~2.2.6",
53
- "@radix-ui/react-slot": "~1.2.4",
54
36
  "@radix-ui/react-switch": "~1.2.6",
55
- "@radix-ui/react-toast": "~1.2.15",
56
- "@smithy/types": "~4.14.1",
37
+ "aws-cdk-lib": "~2.250.0",
38
+ "buffer": "~6.0.3",
39
+ "class-variance-authority": "~0.7.1",
40
+ "clsx": "~2.1.1",
41
+ "jsonwebtoken": "~9.0.3",
42
+ "jwks-rsa": "~4.0.1",
43
+ "lucide-react": "~1.8.0",
44
+ "node-cache": "~5.1.2",
45
+ "react": "~19.2.5",
46
+ "react-dom": "~19.2.5",
47
+ "tailwind-merge": "~3.5.0",
48
+ "zod": "~4.3.6"
49
+ },
50
+ "devDependencies": {
51
+ "@tailwindcss/postcss": "~4.2.2",
57
52
  "@storybook/addon-docs": "~10.3.5",
58
- "@storybook/addon-links": "~10.3.5",
59
- "@storybook/addon-styling-webpack": "~3.0.2",
60
- "@storybook/addons": "~7.6.17",
61
53
  "@storybook/react": "^10.3.5",
62
54
  "@storybook/react-vite": "~10.3.5",
63
- "@storybook/react-webpack5": "~10.3.5",
64
55
  "@types/jsonwebtoken": "~9.0.10",
65
56
  "@types/node": "~25.6.0",
66
57
  "@types/react": "~19.2.14",
67
58
  "@types/react-dom": "~19.2.3",
68
59
  "@typescript-eslint/eslint-plugin": "~8.58.2",
69
60
  "@typescript-eslint/parser": "~8.58.2",
70
- "aws-cdk-lib": "~2.250.0",
71
- "buffer": "~6.0.3",
72
- "eslint-plugin-storybook": "~10.3.5",
61
+ "cross-env": "~10.1.0",
62
+ "eslint": "~10.2.1",
63
+ "eslint-config-e7npm": "~0.1.39",
73
64
  "globstar": "~1.0.0",
74
- "jsonwebtoken": "~9.0.3",
75
- "jwks-rsa": "~4.0.1",
76
- "node-cache": "~5.1.2",
77
65
  "rimraf": "~6.1.3",
78
66
  "storybook": "~10.3.5",
79
- "zod": "~4.3.6"
67
+ "tailwindcss": "~4.2.2",
68
+ "tsx": "~4.21.0",
69
+ "typescript": "~6.0.3"
80
70
  },
81
71
  "files": [
82
72
  "dist/**/*",