Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor typos in descriptions and comments #2681

Merged
merged 4 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lexicons/app/bsky/feed/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
},
"feedContext": {
"type": "string",
"description": "Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.",
"description": "Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.",
"maxLength": 2000
}
}
Expand Down
2 changes: 1 addition & 1 deletion lexicons/com/atproto/label/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
},
"labelValueDefinition": {
"type": "object",
"description": "Declares a label value and its expected interpertations and behaviors.",
"description": "Declares a label value and its expected interpretations and behaviors.",
"required": ["identifier", "severity", "blurs", "locales"],
"properties": {
"identifier": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/docs/moderation.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ if (mod.ui('contentList').blur) {
}
}
if (mod.ui('contentMedia').blur) {
// cover the post's embbedded images with the explanation from mod.ui('contentMedia').blurs[0]
// cover the post's embedded images with the explanation from mod.ui('contentMedia').blurs[0]
if (mod.ui('contentMedia').noOverride) {
// dont allow the cover to be removed
}
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/bsky-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class BskyAgent extends AtpAgent {
detailed: true,
})

// assemble a map of labeler dids to the interpretted label value definitions
// assemble a map of labeler dids to the interpreted label value definitions
const labelDefs = {}
if (labelers.data) {
for (const labeler of labelers.data
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ export const schemaDict = {
labelValueDefinition: {
type: 'object',
description:
'Declares a label value and its expected interpertations and behaviors.',
'Declares a label value and its expected interpretations and behaviors.',
required: ['identifier', 'severity', 'blurs', 'locales'],
properties: {
identifier: {
Expand Down Expand Up @@ -5482,7 +5482,7 @@ export const schemaDict = {
feedContext: {
type: 'string',
description:
'Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.',
'Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.',
maxLength: 2000,
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/client/types/app/bsky/feed/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export interface Interaction {
| 'app.bsky.feed.defs#interactionQuote'
| 'app.bsky.feed.defs#interactionShare'
| (string & {})
/** Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton. */
/** Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. */
feedContext?: string
[k: string]: unknown
}
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/client/types/com/atproto/label/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function validateSelfLabel(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.label.defs#selfLabel', v)
}

/** Declares a label value and its expected interpertations and behaviors. */
/** Declares a label value and its expected interpretations and behaviors. */
export interface LabelValueDefinition {
/** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */
identifier: string
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/moderation/decision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class ModerationDecision {
return // skip labelers not configured by the user
}
if (isSelf && labelDef.flags.includes('no-self')) {
return // skip self-labels that arent supported
return // skip self-labels that aren't supported
}

// establish the label preference for interpretation
Expand Down
2 changes: 1 addition & 1 deletion packages/bsky/src/hydration/hydrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ export class Hydrator {
})
}

// provides partial hydration state withing getFollows / getFollowers, mainly for applying rules
// provides partial hydration state within getFollows / getFollowers, mainly for applying rules
async hydrateFollows(uris: string[]): Promise<HydrationState> {
const follows = await this.graph.getFollows(uris)
const pairs: RelationshipPair[] = []
Expand Down
4 changes: 2 additions & 2 deletions packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ export const schemaDict = {
labelValueDefinition: {
type: 'object',
description:
'Declares a label value and its expected interpertations and behaviors.',
'Declares a label value and its expected interpretations and behaviors.',
required: ['identifier', 'severity', 'blurs', 'locales'],
properties: {
identifier: {
Expand Down Expand Up @@ -5482,7 +5482,7 @@ export const schemaDict = {
feedContext: {
type: 'string',
description:
'Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.',
'Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.',
maxLength: 2000,
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/bsky/src/lexicon/types/app/bsky/feed/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export interface Interaction {
| 'app.bsky.feed.defs#interactionQuote'
| 'app.bsky.feed.defs#interactionShare'
| (string & {})
/** Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton. */
/** Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. */
feedContext?: string
[k: string]: unknown
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bsky/src/lexicon/types/com/atproto/label/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function validateSelfLabel(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.label.defs#selfLabel', v)
}

/** Declares a label value and its expected interpertations and behaviors. */
/** Declares a label value and its expected interpretations and behaviors. */
export interface LabelValueDefinition {
/** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */
identifier: string
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth/oauth-client/src/session-getter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class SessionGetter extends CachedGetter<string, Session> {
// concurrency issues if multiple tabs/instances are trying to refresh
// the same token. The chances of this happening when multiple instances
// are started simultaneously is reduced by randomizing the expiry time
// (see isStale() bellow). Even so, There still exist chances that
// (see isStale() below). Even so, There still exist chances that
// multiple tabs will try to refresh the token at the same time. The
// best solution would be to use a mutex/lock to ensure that only one
// instance is refreshing the token at a time. A simpler workaround is
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth/oauth-provider/src/token/token-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface TokenStore {

/**
* Find a token by its refresh token. Note that previous refresh tokens
* should also return the token. The data model is reponsible for storing
* should also return the token. The data model is responsible for storing
* old refresh tokens when a new one is issued.
*/
findTokenByRefreshToken(
Expand Down
4 changes: 2 additions & 2 deletions packages/ozone/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ export const schemaDict = {
labelValueDefinition: {
type: 'object',
description:
'Declares a label value and its expected interpertations and behaviors.',
'Declares a label value and its expected interpretations and behaviors.',
required: ['identifier', 'severity', 'blurs', 'locales'],
properties: {
identifier: {
Expand Down Expand Up @@ -5482,7 +5482,7 @@ export const schemaDict = {
feedContext: {
type: 'string',
description:
'Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.',
'Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.',
maxLength: 2000,
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ozone/src/lexicon/types/app/bsky/feed/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export interface Interaction {
| 'app.bsky.feed.defs#interactionQuote'
| 'app.bsky.feed.defs#interactionShare'
| (string & {})
/** Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton. */
/** Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. */
feedContext?: string
[k: string]: unknown
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ozone/src/lexicon/types/com/atproto/label/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function validateSelfLabel(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.label.defs#selfLabel', v)
}

/** Declares a label value and its expected interpertations and behaviors. */
/** Declares a label value and its expected interpretations and behaviors. */
export interface LabelValueDefinition {
/** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */
identifier: string
Expand Down
4 changes: 2 additions & 2 deletions packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ export const schemaDict = {
labelValueDefinition: {
type: 'object',
description:
'Declares a label value and its expected interpertations and behaviors.',
'Declares a label value and its expected interpretations and behaviors.',
required: ['identifier', 'severity', 'blurs', 'locales'],
properties: {
identifier: {
Expand Down Expand Up @@ -5482,7 +5482,7 @@ export const schemaDict = {
feedContext: {
type: 'string',
description:
'Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.',
'Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.',
maxLength: 2000,
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/pds/src/lexicon/types/app/bsky/feed/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export interface Interaction {
| 'app.bsky.feed.defs#interactionQuote'
| 'app.bsky.feed.defs#interactionShare'
| (string & {})
/** Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton. */
/** Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. */
feedContext?: string
[k: string]: unknown
}
Expand Down
2 changes: 1 addition & 1 deletion packages/pds/src/lexicon/types/com/atproto/label/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function validateSelfLabel(v: unknown): ValidationResult {
return lexicons.validate('com.atproto.label.defs#selfLabel', v)
}

/** Declares a label value and its expected interpertations and behaviors. */
/** Declares a label value and its expected interpretations and behaviors. */
export interface LabelValueDefinition {
/** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */
identifier: string
Expand Down
2 changes: 1 addition & 1 deletion packages/xrpc-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export class Server {
}
} catch (err: unknown) {
// Express will not call the next middleware (errorMiddleware in this case)
// if the value passed to next is falsy (e.g. null, undefined, 0).
// if the value passed to next is false-y (e.g. null, undefined, 0).
// Hence we replace it with an InternalServerError.
if (!err) {
next(new InternalServerError())
Expand Down