Skip to content

Commit 658d92f

Browse files
committed
chore: wip
1 parent a8271c5 commit 658d92f

43 files changed

Lines changed: 80 additions & 80 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/pickier.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { PickierOptions } from 'pickier'
22

3-
const config: PickierOptions = {
4-
}
3+
const config: PickierOptions = {}
54

65
export default config

benchmarks/signature.bench.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ summary(() => {
536536
})
537537
})
538538

539+
// pickier-disable-next-line ts/no-top-level-await
539540
await run()
540541

541542
// Print size comparison

packages/aws-types/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
},
1616
"exports": {
1717
".": {
18-
"import": "./dist/index.js",
19-
"types": "./dist/index.d.ts"
18+
"types": "./dist/index.d.ts",
19+
"import": "./dist/index.js"
2020
}
2121
},
2222
"main": "./dist/index.js",

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
},
1616
"exports": {
1717
".": {
18-
"import": "./dist/index.js",
19-
"types": "./dist/index.d.ts"
18+
"types": "./dist/index.d.ts",
19+
"import": "./dist/index.js"
2020
}
2121
},
2222
"main": "./dist/index.js",

packages/core/src/aws/cloudformation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,15 +407,15 @@ function parseStack(data: any): CloudFormationStack {
407407
/**
408408
* Parse stack list from XML response
409409
*/
410-
function parseStackList(data: any): CloudFormationStack[] {
410+
function parseStackList(_data: any): CloudFormationStack[] {
411411
// Simplified parsing
412412
return []
413413
}
414414

415415
/**
416416
* Parse stack events from XML response
417417
*/
418-
function parseStackEvents(data: any): StackEvent[] {
418+
function parseStackEvents(_data: any): StackEvent[] {
419419
// Simplified parsing
420420
return []
421421
}

packages/core/src/aws/s3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const MIN_PART_SIZE = 5 * 1024 * 1024
146146
// Default part size (5MB)
147147
const DEFAULT_PART_SIZE = 5 * 1024 * 1024
148148
// Maximum parts in a multipart upload
149-
const MAX_PARTS = 10000
149+
const _MAX_PARTS = 10000
150150
// Threshold for using multipart upload (5MB)
151151
const MULTIPART_THRESHOLD = 5 * 1024 * 1024
152152

packages/core/src/deployment/ab-testing.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ export class ABTestManager {
511511
generateLambdaEdgeFunction(test: ABTest): string {
512512
return `'use strict';
513513
514-
exports.handler = (event, context, callback) => {
514+
exports.handler = (event, _context, _callback) => {
515515
const request = event.Records[0].cf.request;
516516
const headers = request.headers;
517517
@@ -531,7 +531,7 @@ exports.handler = (event, context, callback) => {
531531
// Assign variant if not already assigned
532532
if (!variant) {
533533
const random = Math.random() * 100;
534-
let cumulative = 0;
534+
const _cumulative = 0;
535535
536536
${test.variants
537537
.map((v, i) => {
@@ -543,7 +543,7 @@ exports.handler = (event, context, callback) => {
543543
}
544544
545545
// Set variant cookie
546-
const response = {
546+
const _response = {
547547
status: '200',
548548
statusDescription: 'OK',
549549
headers: {

packages/core/src/email/advanced/analytics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class EmailAnalyticsModule {
5757
* Lambda code for tracking pixel (open tracking)
5858
*/
5959
static TrackingPixelLambdaCode = `
60-
const { DynamoDBClient, UpdateItemCommand, GetItemCommand } = require('@aws-sdk/client-dynamodb');
60+
const { DynamoDBClient, UpdateItemCommand } = require('@aws-sdk/client-dynamodb');
6161
6262
const dynamodb = new DynamoDBClient({});
6363
const ANALYTICS_TABLE = process.env.ANALYTICS_TABLE;
@@ -403,7 +403,7 @@ exports.handler = async (event) => {
403403
// Replace links with tracking links
404404
trackedHtml = trackedHtml.replace(
405405
/href="(https?:\/\/[^"]+)"/g,
406-
(match, url) => {
406+
(_match, url) => {
407407
const encodedUrl = encodeURIComponent(url)
408408
return `href="https://${trackingDomain}/track/click/${messageId}?url=${encodedUrl}"`
409409
}

packages/core/src/email/advanced/shared-mailboxes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class SharedMailboxes {
6363
* Lambda code for shared mailbox management
6464
*/
6565
static SharedMailboxLambdaCode = `
66-
const { S3Client, GetObjectCommand, PutObjectCommand, ListObjectsV2Command } = require('@aws-sdk/client-s3');
66+
const { S3Client, GetObjectCommand } = require('@aws-sdk/client-s3');
6767
const { DynamoDBClient, GetItemCommand, PutItemCommand, QueryCommand, UpdateItemCommand } = require('@aws-sdk/client-dynamodb');
6868
6969
const s3 = new S3Client({});
@@ -225,7 +225,7 @@ async function assignMessage(mailboxId, data) {
225225
};
226226
}
227227
228-
async function getMailboxMessages(mailboxId, queryParams) {
228+
async function getMailboxMessages(mailboxId, _queryParams) {
229229
const mailbox = await getMailbox(mailboxId);
230230
if (mailbox.statusCode !== 200) return mailbox;
231231

packages/core/src/email/advanced/templates.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exports.handler = async (event) => {
4040
console.log('Template render request:', JSON.stringify(event, null, 2));
4141
4242
try {
43-
const { templateId, data, locale, timezone } = JSON.parse(event.body || '{}');
43+
const { templateId, data, locale: _locale, timezone: _timezone } = JSON.parse(event.body || '{}');
4444
4545
if (!templateId) {
4646
return {
@@ -91,19 +91,19 @@ function renderTemplate(template, data) {
9191
});
9292
9393
// Handle {{#if condition}}...{{/if}} syntax
94-
result = result.replace(/\\{\\{#if\\s+([\\w.]+)\\}\\}([\\s\\S]*?)\\{\\{\\/if\\}\\}/g, (match, key, content) => {
94+
result = result.replace(/\\{\\{#if\\s+([\\w.]+)\\}\\}([\\s\\S]*?)\\{\\{\\/if\\}\\}/g, (_match, key, content) => {
9595
const value = getNestedValue(data, key);
9696
return value ? content : '';
9797
});
9898
9999
// Handle {{#unless condition}}...{{/unless}} syntax
100-
result = result.replace(/\\{\\{#unless\\s+([\\w.]+)\\}\\}([\\s\\S]*?)\\{\\{\\/unless\\}\\}/g, (match, key, content) => {
100+
result = result.replace(/\\{\\{#unless\\s+([\\w.]+)\\}\\}([\\s\\S]*?)\\{\\{\\/unless\\}\\}/g, (_match, key, content) => {
101101
const value = getNestedValue(data, key);
102102
return !value ? content : '';
103103
});
104104
105105
// Handle {{#each array}}...{{/each}} syntax
106-
result = result.replace(/\\{\\{#each\\s+([\\w.]+)\\}\\}([\\s\\S]*?)\\{\\{\\/each\\}\\}/g, (match, key, content) => {
106+
result = result.replace(/\\{\\{#each\\s+([\\w.]+)\\}\\}([\\s\\S]*?)\\{\\{\\/each\\}\\}/g, (_match, key, content) => {
107107
const array = getNestedValue(data, key);
108108
if (!Array.isArray(array)) return '';
109109
return array.map((item, index) => {
@@ -393,19 +393,19 @@ The {{appName}} Team`,
393393
})
394394

395395
// Handle {{#if condition}}...{{/if}} syntax
396-
result = result.replace(/\{\{#if\s+([\w.]+)\}\}([\s\S]*?)\{\{\/if\}\}/g, (match, key, content) => {
396+
result = result.replace(/\{\{#if\s+([\w.]+)\}\}([\s\S]*?)\{\{\/if\}\}/g, (_match, key, content) => {
397397
const value = EmailTemplates.getNestedValue(data, key)
398398
return value ? content : ''
399399
})
400400

401401
// Handle {{#unless condition}}...{{/unless}} syntax
402-
result = result.replace(/\{\{#unless\s+([\w.]+)\}\}([\s\S]*?)\{\{\/unless\}\}/g, (match, key, content) => {
402+
result = result.replace(/\{\{#unless\s+([\w.]+)\}\}([\s\S]*?)\{\{\/unless\}\}/g, (_match, key, content) => {
403403
const value = EmailTemplates.getNestedValue(data, key)
404404
return !value ? content : ''
405405
})
406406

407407
// Handle {{#each array}}...{{/each}} syntax
408-
result = result.replace(/\{\{#each\s+([\w.]+)\}\}([\s\S]*?)\{\{\/each\}\}/g, (match, key, content) => {
408+
result = result.replace(/\{\{#each\s+([\w.]+)\}\}([\s\S]*?)\{\{\/each\}\}/g, (_match, key, content) => {
409409
const array = EmailTemplates.getNestedValue(data, key)
410410
if (!Array.isArray(array)) return ''
411411
return array.map((item, index) => {

0 commit comments

Comments
 (0)