@awsless/awsless 0.0.206 → 0.0.207

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 (2) hide show
  1. package/dist/bin.js +3 -5
  2. package/package.json +8 -8
package/dist/bin.js CHANGED
@@ -3632,10 +3632,9 @@ import { constantCase as constantCase5 } from "change-case";
3632
3632
  var typeGenCode6 = `
3633
3633
  import { AnyStruct, Table } from '@awsless/open-search'
3634
3634
 
3635
- type Search<Name extends string> = {
3636
- readonly name: Name
3635
+ type Search = {
3637
3636
  readonly domain: string
3638
- readonly defineTable: <S extends AnyStruct>(tableName: string, schema: S) => Table<Name, S>
3637
+ readonly defineTable: <N extends stringm S extends AnyStruct>(tableName: N, schema: S) => Table<N, S>
3639
3638
  }
3640
3639
  `;
3641
3640
  var searchFeature = defineFeature({
@@ -3646,8 +3645,7 @@ var searchFeature = defineFeature({
3646
3645
  for (const stack of ctx.stackConfigs) {
3647
3646
  const list4 = new TypeObject(2);
3648
3647
  for (const id of Object.keys(stack.searchs ?? {})) {
3649
- const name = formatLocalResourceName(ctx.appConfig.name, stack.name, this.name, id);
3650
- list4.addType(id, `Search<'${name}'>`);
3648
+ list4.addType(id, `Search`);
3651
3649
  }
3652
3650
  resources.addType(stack.name, list4);
3653
3651
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.206",
3
+ "version": "0.0.207",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,15 +28,15 @@
28
28
  }
29
29
  },
30
30
  "peerDependencies": {
31
- "@awsless/redis": "^0.0.12",
32
31
  "@awsless/lambda": "^0.0.18",
33
32
  "@awsless/open-search": "^0.0.12",
33
+ "@awsless/redis": "^0.0.12",
34
34
  "@awsless/sns": "^0.0.7",
35
- "@awsless/sqs": "^0.0.7",
36
35
  "@awsless/s3": "^0.0.10",
37
- "@awsless/weak-cache": "^0.0.1",
36
+ "@awsless/sqs": "^0.0.7",
37
+ "@awsless/ssm": "^0.0.7",
38
38
  "@awsless/validate": "^0.0.13",
39
- "@awsless/ssm": "^0.0.7"
39
+ "@awsless/weak-cache": "^0.0.1"
40
40
  },
41
41
  "dependencies": {
42
42
  "@aws-appsync/utils": "^1.5.0",
@@ -99,10 +99,10 @@
99
99
  "zod-to-json-schema": "^3.22.3",
100
100
  "@awsless/duration": "^0.0.1",
101
101
  "@awsless/formation": "^0.0.17",
102
- "@awsless/graphql": "^0.0.9",
103
102
  "@awsless/size": "^0.0.1",
104
- "@awsless/validate": "^0.0.13",
105
- "@awsless/code": "^0.0.10"
103
+ "@awsless/graphql": "^0.0.9",
104
+ "@awsless/code": "^0.0.10",
105
+ "@awsless/validate": "^0.0.13"
106
106
  },
107
107
  "scripts": {
108
108
  "test": "pnpm code test",