ag-common 0.0.23 → 0.0.27

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 { DocumentClient, Key } from 'aws-sdk/clients/dynamodb';
2
- import { IQueryDynamo } from '../types';
1
+ import { DocumentClient } from 'aws-sdk/clients/dynamodb';
2
+ import { IQueryDynamo, Key } from '../types';
3
3
  export declare let dynamoDb: DocumentClient;
4
4
  export declare const setDynamo: (region: string) => void;
5
5
  export declare const putDynamo: <T>(item: T, tableName: string) => Promise<{
@@ -111,6 +111,8 @@ const openApiImpl = (p) => {
111
111
  bundling: {
112
112
  externalModules: ['aws-sdk', 'aws-lambda'],
113
113
  },
114
+ reservedConcurrentExecutions: 5,
115
+ logRetention: aws_cdk_lib_1.aws_logs.RetentionDays.FIVE_DAYS,
114
116
  });
115
117
  readTables.forEach((t) => t.table.grantReadData(lambdaV));
116
118
  writeTables.forEach((t) => t.table.grantReadWriteData(lambdaV));
@@ -0,0 +1,100 @@
1
+ export interface APIGatewayProxyResult {
2
+ statusCode: number;
3
+ headers?: {
4
+ [header: string]: boolean | number | string;
5
+ } | undefined;
6
+ multiValueHeaders?: {
7
+ [header: string]: Array<boolean | number | string>;
8
+ } | undefined;
9
+ body: string;
10
+ isBase64Encoded?: boolean | undefined;
11
+ }
12
+ export interface APIGatewayEvent {
13
+ body: string | null;
14
+ headers: Record<string, string | undefined>;
15
+ httpMethod: string;
16
+ queryStringParameters: Record<string, string> | null;
17
+ pathParameters: Record<string, string> | null;
18
+ resource: string;
19
+ path: string;
20
+ requestContext: {
21
+ connectionId: string;
22
+ domainName: string;
23
+ identity: {
24
+ userAgent: string;
25
+ sourceIp: string;
26
+ };
27
+ httpMethod: string;
28
+ };
29
+ }
30
+ interface AttributeValue {
31
+ B?: string | undefined;
32
+ BS?: string[] | undefined;
33
+ BOOL?: boolean | undefined;
34
+ L?: AttributeValue[] | undefined;
35
+ M?: {
36
+ [id: string]: AttributeValue;
37
+ } | undefined;
38
+ N?: string | undefined;
39
+ NS?: string[] | undefined;
40
+ NULL?: boolean | undefined;
41
+ S?: string | undefined;
42
+ SS?: string[] | undefined;
43
+ }
44
+ export interface AppSyncResolverEvent<TArguments, TSource = Record<string, any> | null> {
45
+ arguments: TArguments;
46
+ identity?: any;
47
+ source: TSource;
48
+ request: {
49
+ headers: {
50
+ [name: string]: string | undefined;
51
+ };
52
+ };
53
+ info: {
54
+ selectionSetList: string[];
55
+ selectionSetGraphQL: string;
56
+ parentTypeName: string;
57
+ fieldName: string;
58
+ variables: {
59
+ [key: string]: any;
60
+ };
61
+ };
62
+ prev: {
63
+ result: {
64
+ [key: string]: any;
65
+ };
66
+ } | null;
67
+ stash: {
68
+ [key: string]: any;
69
+ };
70
+ }
71
+ export interface DynamoDBStreamEvent {
72
+ Records: {
73
+ awsRegion?: string | undefined;
74
+ dynamodb?: {
75
+ ApproximateCreationDateTime?: number | undefined;
76
+ Keys?: {
77
+ [key: string]: AttributeValue;
78
+ } | undefined;
79
+ NewImage?: {
80
+ [key: string]: AttributeValue;
81
+ } | undefined;
82
+ OldImage?: {
83
+ [key: string]: AttributeValue;
84
+ } | undefined;
85
+ SequenceNumber?: string | undefined;
86
+ SizeBytes?: number | undefined;
87
+ StreamViewType?: 'KEYS_ONLY' | 'NEW_IMAGE' | 'OLD_IMAGE' | 'NEW_AND_OLD_IMAGES' | undefined;
88
+ } | undefined;
89
+ eventID?: string | undefined;
90
+ eventName?: 'INSERT' | 'MODIFY' | 'REMOVE' | undefined;
91
+ eventSource?: string | undefined;
92
+ eventSourceARN?: string | undefined;
93
+ eventVersion?: string | undefined;
94
+ userIdentity?: any;
95
+ }[];
96
+ }
97
+ export declare type Key = {
98
+ [key: string]: AttributeValue;
99
+ };
100
+ export {};
File without changes
@@ -1,5 +1,5 @@
1
1
  import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
2
- import { Key } from 'aws-sdk/clients/dynamodb';
2
+ import { Key } from './aws';
3
3
  export interface DYNAMOKEYS {
4
4
  type: string;
5
5
  L1: string;
@@ -43,32 +43,4 @@ export interface IQueryDynamo {
43
43
  filterValue?: string | number;
44
44
  filterOperator?: string;
45
45
  }
46
- export interface APIGatewayProxyResult {
47
- statusCode: number;
48
- headers?: {
49
- [header: string]: boolean | number | string;
50
- } | undefined;
51
- multiValueHeaders?: {
52
- [header: string]: Array<boolean | number | string>;
53
- } | undefined;
54
- body: string;
55
- isBase64Encoded?: boolean | undefined;
56
- }
57
- export interface APIGatewayEvent {
58
- body: string | null;
59
- headers: Record<string, string | undefined>;
60
- httpMethod: string;
61
- queryStringParameters: Record<string, string> | null;
62
- pathParameters: Record<string, string> | null;
63
- resource: string;
64
- path: string;
65
- requestContext: {
66
- connectionId: string;
67
- domainName: string;
68
- identity: {
69
- userAgent: string;
70
- sourceIp: string;
71
- };
72
- httpMethod: string;
73
- };
74
- }
46
+ export * from './aws';
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./aws"), exports);
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const Chevron: ({ down, width, className, colour, }: {
3
+ colour?: string | undefined;
4
+ className?: string | undefined;
5
+ width?: string | undefined;
6
+ down: boolean;
7
+ }) => JSX.Element;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Chevron = void 0;
7
+ const styled_components_1 = __importDefault(require("styled-components"));
8
+ const react_1 = __importDefault(require("react"));
9
+ const Icon_1 = require("../Icon");
10
+ const SChevron = styled_components_1.default.span `
11
+ font-size: 2rem;
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ `;
16
+ const IconStyled = (0, styled_components_1.default)(Icon_1.Icon) `
17
+ cursor: pointer;
18
+ margin: 0;
19
+ padding: 0;
20
+ `;
21
+ const ChevronIcon = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -256 1792 1792" },
22
+ react_1.default.createElement("path", { d: "M1679.339 301.56q0 53-37 90l-651 651q-38 38-91 38-54 0-90-38l-651-651q-38-36-38-90 0-53 38-91l74-75q39-37 91-37 53 0 90 37l486 486 486-486q37-37 90-37 52 0 91 37l75 75q37 39 37 91z" })));
23
+ const Chevron = ({ down, width = '1.2rem', className, colour = 'black', }) => (react_1.default.createElement(SChevron, { className: className },
24
+ react_1.default.createElement(IconStyled, { flip: down, fill: colour, width: width, height: width }, ChevronIcon)));
25
+ exports.Chevron = Chevron;
@@ -24,6 +24,7 @@ const colours_1 = require("../../styles/colours");
24
24
  const react_1 = __importStar(require("react"));
25
25
  const styled_components_1 = __importStar(require("styled-components"));
26
26
  const Icon_1 = require("../Icon");
27
+ const dom_1 = require("../../helpers/dom");
27
28
  const SBase = styled_components_1.default.div `
28
29
  display: flex;
29
30
  flex-flow: row;
@@ -42,7 +43,6 @@ const SItems = styled_components_1.default.div `
42
43
  background-color: white;
43
44
  cursor: default;
44
45
  width: 100%;
45
- right: 0;
46
46
  max-width: 95vw;
47
47
  ${({ open }) => open &&
48
48
  (0, styled_components_1.css) `
@@ -81,6 +81,7 @@ const SItem = styled_components_1.default.div `
81
81
  }
82
82
  `;
83
83
  function DropdownList({ options, value, onChange, placeholder, className, renderF, children, }) {
84
+ var _a, _b;
84
85
  const ref = (0, react_1.useRef)(null);
85
86
  const [state, setState] = (0, react_1.useState)(value);
86
87
  const [open, setOpen] = (0, react_1.useState)(false);
@@ -102,12 +103,23 @@ function DropdownList({ options, value, onChange, placeholder, className, render
102
103
  setState(newv);
103
104
  }, [options, value]);
104
105
  const maxLen = Math.max(...options.map((s) => renderF(s).length));
106
+ const style = {
107
+ width: `calc(${maxLen}ch + 2rem)`,
108
+ };
109
+ const minLeft = (0, dom_1.convertRemToPixels)(2 + maxLen / 2);
110
+ const offsetList = (_b = (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.offsetLeft) !== null && _b !== void 0 ? _b : 0;
111
+ if (offsetList < minLeft) {
112
+ style.left = 0;
113
+ }
114
+ else {
115
+ style.right = 0;
116
+ }
105
117
  return (react_1.default.createElement(SBase, { className: className, ref: ref, title: placeholder, onClick: (e) => {
106
118
  e.stopPropagation();
107
119
  e.preventDefault();
108
120
  setOpen(!open);
109
121
  } },
110
- react_1.default.createElement(SItems, { open: open, style: { width: `calc(${maxLen}ch + 2rem)` } }, open &&
122
+ react_1.default.createElement(SItems, { open: open, style: style }, open &&
111
123
  options.map((s, i) => (react_1.default.createElement(SItem, { key: renderF(s), selected: s === state, onClick: () => {
112
124
  if (s !== state) {
113
125
  onChange(s, i);
@@ -12,7 +12,9 @@ const SClose = styled_components_1.default.div `
12
12
  height: 32px;
13
13
  opacity: 0.3;
14
14
  cursor: pointer;
15
+ background-color: white;
15
16
  top: 0;
17
+ z-index: 1;
16
18
  right: 0;
17
19
  &:hover {
18
20
  opacity: 1;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare const CheckboxEdit: ({ defaultValue, onSubmit, }: {
2
+ export declare const CheckboxEdit: ({ defaultValue, onSubmit, noGrow, }: {
3
3
  defaultValue: boolean;
4
4
  onSubmit: (val: boolean) => void;
5
+ noGrow?: boolean | undefined;
5
6
  }) => JSX.Element;
@@ -36,7 +36,7 @@ const Icons = (0, styled_components_1.default)(FlexRow_1.FlexRow) `
36
36
  top: 0;
37
37
  right: -2rem;
38
38
  `;
39
- const CheckboxEdit = ({ defaultValue, onSubmit, }) => {
39
+ const CheckboxEdit = ({ defaultValue, onSubmit, noGrow = false, }) => {
40
40
  const ref = (0, react_1.useRef)(null);
41
41
  const [value, setValue] = (0, react_1.useState)(defaultValue);
42
42
  (0, react_1.useEffect)(() => {
@@ -48,9 +48,9 @@ const CheckboxEdit = ({ defaultValue, onSubmit, }) => {
48
48
  onSubmit(value);
49
49
  }
50
50
  });
51
- return (react_1.default.createElement(common_1.ValueBox, Object.assign({}, common_2.noDrag, { ref: ref }),
51
+ return (react_1.default.createElement(common_1.ValueBox, Object.assign({}, common_2.noDrag, { ref: ref, "data-nogrow": noGrow }),
52
52
  react_1.default.createElement(common_1.ValueInputCB, { type: "checkbox", "data-type": "checkbox", checked: value, onChange: () => setValue(!value), onKeyPress: (e) => e.key === 'Enter' && value !== defaultValue && onSubmit(value) }),
53
- react_1.default.createElement(Icons, { center: true },
53
+ react_1.default.createElement(Icons, { center: true, enableOverflow: true },
54
54
  value !== defaultValue && (react_1.default.createElement(common_1.IconD, { style: common_1.iconLeft, onClick: () => value !== defaultValue && onSubmit(value) },
55
55
  react_1.default.createElement(images_1.SaveIcon, null))),
56
56
  value !== defaultValue && (react_1.default.createElement(common_1.IconD, { style: common_1.iconRight, onClick: () => setValue(defaultValue) },
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ export declare const ValueReadonly: import("styled-components").StyledComponent<"div", any, {}, never>;
2
3
  export declare const TextEdit: ({ defaultValue, defaultEditing, onSubmit, canEdit, placeholder, onEditingChange, onClickOutsideWithNoValue, onClickNotEditing, className, singleLine, }: {
3
4
  singleLine?: boolean | undefined;
4
5
  className?: string | undefined;
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
22
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.TextEdit = void 0;
25
+ exports.TextEdit = exports.ValueReadonly = void 0;
26
26
  /* eslint-disable jsx-a11y/no-onchange */
27
27
  const react_1 = __importStar(require("react"));
28
28
  const images_1 = require("./images");
@@ -30,14 +30,37 @@ const common_1 = require("./common");
30
30
  const styled_components_1 = __importDefault(require("styled-components"));
31
31
  const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
32
32
  const common_2 = require("../../styles/common");
33
+ exports.ValueReadonly = styled_components_1.default.div `
34
+ ${common_1.valueCss};
35
+ word-break: break-word;
36
+ flex-basis: calc(100% - 3rem);
37
+ `;
33
38
  const ValueTextArea = styled_components_1.default.textarea `
39
+ border: 0;
40
+ word-break: break-word;
34
41
  ${common_1.valueCss};
35
42
  resize: none;
36
43
  overflow: hidden;
44
+ background-color: white;
37
45
  &[data-editing='true'] {
38
46
  min-height: 5rem;
39
47
  }
40
48
  `;
49
+ const ValueBoxEdit = (0, styled_components_1.default)(common_1.ValueBox) `
50
+ border: solid 1px #ccc;
51
+ `;
52
+ const Right = styled_components_1.default.div `
53
+ display: flex;
54
+ flex-flow: row;
55
+ align-content: center;
56
+ `;
57
+ const Icon = styled_components_1.default.div `
58
+ width: 1.5rem;
59
+ cursor: pointer;
60
+ &:hover {
61
+ filter: saturate(3);
62
+ }
63
+ `;
41
64
  const TextEdit = ({ defaultValue, defaultEditing = false, onSubmit, canEdit = true, placeholder, onEditingChange, onClickOutsideWithNoValue, onClickNotEditing, className, singleLine = false, }) => {
42
65
  const ref = (0, react_1.useRef)(null);
43
66
  const taref = (0, react_1.useRef)(null);
@@ -78,24 +101,25 @@ const TextEdit = ({ defaultValue, defaultEditing = false, onSubmit, canEdit = tr
78
101
  }, [defaultEditing]);
79
102
  if (!editing || !canEdit) {
80
103
  return (react_1.default.createElement(common_1.ValueBox, Object.assign({}, common_2.noDrag, { className: className, "data-editing": "false", onClick: () => onClickNotEditing === null || onClickNotEditing === void 0 ? void 0 : onClickNotEditing(), "data-pointer": onClickNotEditing ? 'true' : 'false' }),
81
- react_1.default.createElement(common_1.ValueReadonly, { "data-type": "text" }, value),
82
- canEdit && (react_1.default.createElement(common_1.IconD, { style: common_1.iconRight, onClick: (e) => {
104
+ react_1.default.createElement(exports.ValueReadonly, { "data-type": "text" }, value),
105
+ react_1.default.createElement(Right, null, canEdit && (react_1.default.createElement(Icon, { style: common_1.iconRight, onClick: (e) => {
83
106
  e.stopPropagation();
84
107
  setEditing(true);
85
108
  } },
86
- react_1.default.createElement(images_1.PencilIcon, null)))));
109
+ react_1.default.createElement(images_1.PencilIcon, null))))));
87
110
  }
88
111
  if (!open) {
89
112
  return react_1.default.createElement(react_1.default.Fragment, null);
90
113
  }
91
- return (react_1.default.createElement(common_1.ValueBox, Object.assign({ "data-editing": "true" }, common_2.noDrag, { ref: ref, tabIndex: editing ? 0 : undefined, className: className }),
114
+ return (react_1.default.createElement(ValueBoxEdit, Object.assign({ "data-editing": "true" }, common_2.noDrag, { ref: ref, tabIndex: editing ? 0 : undefined, className: className }),
92
115
  react_1.default.createElement(ValueTextArea, { "data-editing": "true", "data-valuechange": valueChange.toString(), ref: taref, "data-type": "text", value: value, onChange: (v) => setValue(v.currentTarget.value), placeholder: placeholder, rows: singleLine ? 1 : undefined, onKeyDown: (e) => singleLine && e.code.endsWith('Enter') && onSubmit(value) && false }),
93
- valueChange && (react_1.default.createElement(common_1.IconD, { style: common_1.iconLeft, onClick: () => valueChange && onSubmit(value) },
94
- react_1.default.createElement(images_1.SaveIcon, null))),
95
- (valueChange || editing !== defaultEditing) && (react_1.default.createElement(common_1.IconD, { style: common_1.iconRight, onClick: () => {
96
- setEditing(defaultEditing);
97
- setValue(defaultValue);
98
- } },
99
- react_1.default.createElement(images_1.UndoIcon, null)))));
116
+ react_1.default.createElement(Right, null,
117
+ valueChange && (react_1.default.createElement(Icon, { style: common_1.iconLeft, onClick: () => valueChange && onSubmit(value) },
118
+ react_1.default.createElement(images_1.SaveIcon, null))),
119
+ (valueChange || editing !== defaultEditing) && (react_1.default.createElement(Icon, { style: common_1.iconRight, onClick: () => {
120
+ setEditing(defaultEditing);
121
+ setValue(defaultValue);
122
+ } },
123
+ react_1.default.createElement(images_1.UndoIcon, null))))));
100
124
  };
101
125
  exports.TextEdit = TextEdit;
@@ -1,13 +1,10 @@
1
1
  export declare const ValueBox: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const valueCss: import("styled-components").FlattenSimpleInterpolation;
3
3
  export declare const ValueInputCB: import("styled-components").StyledComponent<"input", any, {}, never>;
4
- export declare const ValueReadonly: import("styled-components").StyledComponent<"div", any, {}, never>;
5
4
  export declare const IconD: import("styled-components").StyledComponent<"div", any, {}, never>;
6
5
  export declare const iconRight: {
7
6
  right: string;
8
- top: string;
9
7
  };
10
8
  export declare const iconLeft: {
11
9
  right: string;
12
- top: string;
13
10
  };
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.iconLeft = exports.iconRight = exports.IconD = exports.ValueReadonly = exports.ValueInputCB = exports.valueCss = exports.ValueBox = void 0;
22
+ exports.iconLeft = exports.iconRight = exports.IconD = exports.ValueInputCB = exports.valueCss = exports.ValueBox = void 0;
23
23
  const styled_components_1 = __importStar(require("styled-components"));
24
24
  const colours_1 = require("../../styles/colours");
25
25
  exports.ValueBox = styled_components_1.default.div `
@@ -36,6 +36,9 @@ exports.ValueBox = styled_components_1.default.div `
36
36
  &[data-pointer='true'] {
37
37
  cursor: pointer;
38
38
  }
39
+ &[data-nogrow='true'] {
40
+ flex-grow: 0;
41
+ }
39
42
  `;
40
43
  exports.valueCss = (0, styled_components_1.css) `
41
44
  width: 100%;
@@ -52,9 +55,6 @@ exports.valueCss = (0, styled_components_1.css) `
52
55
  exports.ValueInputCB = styled_components_1.default.input `
53
56
  ${exports.valueCss};
54
57
  `;
55
- exports.ValueReadonly = styled_components_1.default.div `
56
- ${exports.valueCss};
57
- `;
58
58
  exports.IconD = styled_components_1.default.div `
59
59
  z-index: 1;
60
60
  font-size: 1rem;
@@ -66,5 +66,5 @@ exports.IconD = styled_components_1.default.div `
66
66
  fill: ${colours_1.colours.notificationBlue};
67
67
  }
68
68
  `;
69
- exports.iconRight = { right: '0', top: '-1rem' };
70
- exports.iconLeft = { right: '1.5rem', top: '-1rem' };
69
+ exports.iconRight = { right: '0' };
70
+ exports.iconLeft = { right: '1.5rem' };
@@ -1,5 +1,6 @@
1
1
  export * from './BorderGradient';
2
2
  export * from './Button';
3
+ export * from './Chevron';
3
4
  export * from './Dropdown';
4
5
  export * from './DropdownList';
5
6
  export * from './FlexColumn';
@@ -12,6 +12,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./BorderGradient"), exports);
14
14
  __exportStar(require("./Button"), exports);
15
+ __exportStar(require("./Chevron"), exports);
15
16
  __exportStar(require("./Dropdown"), exports);
16
17
  __exportStar(require("./DropdownList"), exports);
17
18
  __exportStar(require("./FlexColumn"), exports);
@@ -1 +1,2 @@
1
1
  export declare const domContains: (e: DOMRect | undefined, x: number, y: number) => boolean;
2
+ export declare const convertRemToPixels: (rem: number) => number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.domContains = void 0;
3
+ exports.convertRemToPixels = exports.domContains = void 0;
4
4
  const domContains = (e, x, y) => {
5
5
  if (!e) {
6
6
  return false;
@@ -8,3 +8,5 @@ const domContains = (e, x, y) => {
8
8
  return e.x <= x && x <= e.x + e.width && e.y <= y && y <= e.y + e.height;
9
9
  };
10
10
  exports.domContains = domContains;
11
+ const convertRemToPixels = (rem) => rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
12
+ exports.convertRemToPixels = convertRemToPixels;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-common",
3
- "version": "0.0.23",
3
+ "version": "0.0.27",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Andrei Gec <@andreigec> (https://gec.dev/)",