@awsless/cli 0.0.46-local.6 → 0.0.46-local.7

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 +35 -9
  2. package/package.json +16 -16
package/dist/bin.js CHANGED
@@ -159270,7 +159270,7 @@ var tableFeature = defineFeature({
159270
159270
  const sort2 = props.sort ? typeValue(props.sort) : "undefined";
159271
159271
  const indexes = props.indexes && Object.keys(props.indexes).length > 0 ? `{ ${Object.entries(props.indexes).map(([indexName, index]) => {
159272
159272
  const indexSort = index.sort ? `; sort: ${typeValue(index.sort)}` : "";
159273
- return `${indexName}: { hash: ${typeValue(index.hash)}${indexSort} }`;
159273
+ return `'${indexName}': { hash: ${typeValue(index.hash)}${indexSort} }`;
159274
159274
  }).join("; ")} }` : "undefined";
159275
159275
  list2.addType(name, `{
159276
159276
  readonly name: '${tableName}'
@@ -166477,12 +166477,16 @@ var dashboardHtml = `<!doctype html>
166477
166477
  .filters input { flex: 1; }
166478
166478
  .filters input::placeholder { color: var(--muted); }
166479
166479
  .filters .count { color: var(--muted); align-self: center; white-space: nowrap; }
166480
- .rows { display: flex; flex-direction: column; }
166480
+ /* The stack & name columns share one grid across every row, so the
166481
+ names line up no matter how long each stack name is. */
166482
+ .rows { display: grid; grid-template-columns: fit-content(280px) 1fr auto; }
166483
+ .rows > .empty { grid-column: 1 / -1; }
166481
166484
  .row {
166482
- display: flex;
166485
+ display: grid;
166486
+ grid-template-columns: subgrid;
166487
+ grid-column: 1 / -1;
166483
166488
  gap: 12px;
166484
166489
  align-items: baseline;
166485
- width: 100%;
166486
166490
  text-align: left;
166487
166491
  background: none;
166488
166492
  border: none;
@@ -166500,14 +166504,20 @@ var dashboardHtml = `<!doctype html>
166500
166504
  text-overflow: ellipsis;
166501
166505
  white-space: nowrap;
166502
166506
  }
166503
- .row .id { font-weight: bold; }
166507
+ .row .id {
166508
+ font-weight: bold;
166509
+ min-width: 0;
166510
+ overflow: hidden;
166511
+ text-overflow: ellipsis;
166512
+ white-space: nowrap;
166513
+ }
166504
166514
  .row .info {
166505
166515
  color: var(--muted);
166506
- margin-left: auto;
166516
+ justify-self: end;
166507
166517
  overflow: hidden;
166508
166518
  text-overflow: ellipsis;
166509
166519
  white-space: nowrap;
166510
- max-width: 45%;
166520
+ max-width: 100%;
166511
166521
  }
166512
166522
  textarea {
166513
166523
  width: 100%;
@@ -166800,6 +166810,19 @@ const rpcPanel = (main, r) => {
166800
166810
  }
166801
166811
 
166802
166812
  const query = $('select', {}, r.queries.map(name => $('option', { value: name, textContent: name })))
166813
+
166814
+ // The token rides the same "authentication" header the rpc client
166815
+ // sends, & sticks around per api so a page reload keeps it.
166816
+ const authKey = 'rpc-auth-token:' + r.routeKey
166817
+ const auth = $('input', {
166818
+ type: 'text',
166819
+ placeholder: 'Auth token (optional)',
166820
+ value: localStorage.getItem(authKey) ?? '',
166821
+ autocomplete: 'off',
166822
+ spellcheck: false,
166823
+ })
166824
+ auth.oninput = () => localStorage.setItem(authKey, auth.value)
166825
+
166803
166826
  const payload = $('textarea', { value: '{}', spellcheck: false })
166804
166827
  const status = $('span', { className: 'status' })
166805
166828
  const result = $('pre', { className: 'result', hidden: true })
@@ -166818,7 +166841,10 @@ const rpcPanel = (main, r) => {
166818
166841
  version: '2.0',
166819
166842
  rawPath: '/',
166820
166843
  requestContext: { http: { method: 'POST', userAgent: 'awsless dev dashboard', sourceIp: '127.0.0.1' } },
166821
- headers: { 'content-type': 'application/json' },
166844
+ headers: {
166845
+ 'content-type': 'application/json',
166846
+ ...(auth.value.trim() ? { authentication: auth.value.trim() } : {}),
166847
+ },
166822
166848
  body: JSON.stringify([{ name: query.value, ...(parsed === undefined ? {} : { payload: parsed }) }]),
166823
166849
  }
166824
166850
 
@@ -166842,7 +166868,7 @@ const rpcPanel = (main, r) => {
166842
166868
  }
166843
166869
 
166844
166870
  main.append(
166845
- $('div', { className: 'filters' }, [query]),
166871
+ $('div', { className: 'filters' }, [query, auth]),
166846
166872
  payload,
166847
166873
  $('div', { className: 'actions' }, [run, status]),
166848
166874
  result,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/cli",
3
- "version": "0.0.46-local.6",
3
+ "version": "0.0.46-local.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -43,14 +43,14 @@
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@awsless/big-float": "^0.1.7",
46
- "@awsless/duration": "^0.0.4",
47
46
  "@awsless/dynamodb": "^0.3.22",
48
47
  "@awsless/lambda": "^0.0.47",
49
- "@awsless/s3": "^0.0.22",
48
+ "@awsless/duration": "^0.0.4",
50
49
  "@awsless/json": "^0.0.11",
51
- "@awsless/validate": "^0.1.7",
50
+ "@awsless/s3": "^0.0.22",
51
+ "awsless": "^0.0.15-local.3",
52
52
  "@awsless/weak-cache": "^0.0.1",
53
- "awsless": "^0.0.15-local.3"
53
+ "@awsless/validate": "^0.1.7"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@aws-sdk/client-cloudformation": "^3.369.0",
@@ -120,25 +120,25 @@
120
120
  "zip-a-folder": "^3.1.6",
121
121
  "zod": "^3.24.2",
122
122
  "zod-to-json-schema": "^3.24.3",
123
- "@awsless/big-float": "^0.1.7",
124
- "@awsless/clui": "^0.0.9",
125
123
  "@awsless/cloudwatch": "^0.0.1",
126
- "@awsless/duration": "^0.0.4",
124
+ "@awsless/clui": "^0.0.9",
125
+ "@awsless/big-float": "^0.1.7",
127
126
  "@awsless/dynamodb": "^0.3.22",
128
- "@awsless/iot": "^0.0.5",
127
+ "@awsless/json": "^0.0.11",
129
128
  "@awsless/lambda": "^0.0.47",
130
129
  "@awsless/open-search": "^0.0.24",
131
- "@awsless/s3": "^0.0.22",
132
- "@awsless/json": "^0.0.11",
130
+ "@awsless/duration": "^0.0.4",
133
131
  "@awsless/redis": "^0.1.13",
134
132
  "@awsless/size": "^0.0.2",
135
- "@awsless/scheduler": "^0.0.5",
136
- "@awsless/validate": "^0.1.7",
137
- "@awsless/sns": "^0.0.11",
138
- "@awsless/ssm": "^0.0.8",
133
+ "@awsless/iot": "^0.0.5",
139
134
  "@awsless/sqs": "^0.0.24",
135
+ "@awsless/ssm": "^0.0.8",
136
+ "@awsless/sns": "^0.0.11",
137
+ "@awsless/s3": "^0.0.22",
138
+ "@awsless/validate": "^0.1.7",
140
139
  "@awsless/weak-cache": "^0.0.1",
141
- "awsless": "^0.0.15-local.3"
140
+ "awsless": "^0.0.15-local.3",
141
+ "@awsless/scheduler": "^0.0.5"
142
142
  },
143
143
  "scripts": {
144
144
  "test": "bun cli/build-handlers.ts && pnpm vitest",