Skip to content

Commit 6bb0a8c

Browse files
chore: fix typos (#1375)
chore: fix typos
2 parents 75d8eef + 1228b86 commit 6bb0a8c

File tree

17 files changed

+25
-25
lines changed

17 files changed

+25
-25
lines changed

packages/cache-list/lib/AmpCaches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class AmpCaches {
6060
}
6161

6262
/**
63-
* Retrieves the cache instance that maches the cacheId.
63+
* Retrieves the cache instance that matches the cacheId.
6464
*
6565
* @param {string} cacheId The id of the cache to be retrieved.
6666
* @returns {Promise<object>} the Cache which the matching id or undefined, if a cache with the

packages/linter/src/rules/VideosAreSubtitled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class VideosAreSubtitled extends Rule {
88

99
//Are there any <amp-video> tags? If so, is there at least 1 <track>?
1010
return numOfVideoElems > 0 && numOfSubtitleElems <= 0
11-
? this.warn(`One or more videos are missing HMTL subtitles`)
11+
? this.warn(`One or more videos are missing HTML subtitles`)
1212
: this.pass();
1313
}
1414
meta() {

packages/optimizer-docker/spec/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Server integration tests', () => {
3333
});
3434
});
3535

36-
it('should run the provided HTML throught the optimizer', async () => {
36+
it('should run the provided HTML through the optimizer', async () => {
3737
const {body} = await request({body: VALID_REQUEST, query: {canonical: 'http://example.com'}});
3838
expect(body).toMatch('<!doctype html>');
3939
expect(body).toMatch('<link data-auto rel="canonical" href="http://example.com">');

packages/optimizer-express/lib/AmpOptimizeMiddleware.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AmpOptimizerMiddleware {
4040
return;
4141
}
4242

43-
// This is a request for the canonical URL. Setup the middelware to transform the
43+
// This is a request for the canonical URL. Setup the middleware to transform the
4444
// response using amp-optimizer.
4545
const chunks = [];
4646

@@ -78,7 +78,7 @@ class AmpOptimizerMiddleware {
7878
chunks.push(chunk);
7979
}
8080

81-
// If end is called withouth any chunks, end the request.
81+
// If end is called without any chunks, end the request.
8282
if (chunks.length === 0) {
8383
res.end();
8484
return;
@@ -104,7 +104,7 @@ class AmpOptimizerMiddleware {
104104
* Javascript or CSS file.
105105
*
106106
* @param {Request} req the request to be checked.
107-
* @returns {boolean} true if the reqeust is for a resource.
107+
* @returns {boolean} true if the request is for a resource.
108108
*/
109109
static isResourceRequest_(req) {
110110
// Checks if mime-type for request is text/html. If mime type is unknown, assume text/html,

packages/optimizer-express/spec/lib/UrlMappingSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('UrlMapping', () => {
3030
expect(result).toBe(true);
3131
});
3232

33-
it('correcty identifies non-AMP urls', () => {
33+
it('correctly identifies non-AMP urls', () => {
3434
const result = urlMapping.isAmpUrl('/page');
3535
expect(result).toBe(false);
3636
});

packages/optimizer/lib/DomTransformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const fetchRuntimeParameters = require('./fetchRuntimeParameters');
2323
const cache = require('./cache');
2424

2525
/**
26-
* AMP Optimizer Configuration only applying AMP validity perserving transformations.
26+
* AMP Optimizer Configuration only applying AMP validity preserving transformations.
2727
*/
2828
const TRANSFORMATIONS_AMP_FIRST = [
2929
// Adds missing AMP tags

packages/optimizer/lib/ParseLayout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const SIZE_DEFINED_LAYOUTS = [
3737
];
3838
const CSS_LENGTH_ONE_PX = cssLength('1', false, false);
3939
const CSS_LENGTH_AUTO = cssLength('auto', true, false);
40-
const CSS_LENGTH_FOURTY_FOUR_PX = cssLength('44px', false, false);
40+
const CSS_LENGTH_FORTY_FOUR_PX = cssLength('44px', false, false);
4141
const CSS_LENGTH_SIXTY_PX = cssLength('60px', false, false);
4242

4343
function getLayoutClass(layout) {
@@ -62,7 +62,7 @@ function calculateHeight(inputLayout, inputHeight, tagName) {
6262
case 'amp-pixel':
6363
return CSS_LENGTH_ONE_PX;
6464
case 'amp-social-share':
65-
return CSS_LENGTH_FOURTY_FOUR_PX;
65+
return CSS_LENGTH_FORTY_FOUR_PX;
6666
default:
6767
}
6868
}

packages/optimizer/lib/transformers/AddBlurryImagePlaceholders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class AddBlurryImagePlaceholders {
103103
this.cache_ = new Map();
104104
} else if (maxCacheSize > 0) {
105105
const LRU = require('lru-cache');
106-
this.log_.debug('using LRU cache for regularily used placeholders', maxCacheSize);
106+
this.log_.debug('using LRU cache for regularly used placeholders', maxCacheSize);
107107
// use a LRU cache otherwise
108108
this.cache_ = new LRU({
109109
max: maxCacheSize,

packages/optimizer/lib/transformers/AutoExtensionImporter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ const manualExtensions = Array.from(manualAttributeToExtensionMapping.values());
4343
*
4444
* - use validation rules to map used AMP tags to required AMP extensions.
4545
* - use validation rules to map used AMP attributes to required AMP extensions.
46-
* - manually specifiy attribute to extension mappings if this information is not available in the
46+
* - manually specify attribute to extension mappings if this information is not available in the
4747
* validation rules.
48-
* - mnullay implement AMP extension detection for a few corner cases.
48+
* - manually implement AMP extension detection for a few corner cases.
4949
*
5050
* This importer also enables a shortcode `bindtext` instead of `data-amp-bind-text` for specifying
51-
* AMP bindings when the square bracket notation (`[text]`) is not available. To avoid accidently
51+
* AMP bindings when the square bracket notation (`[text]`) is not available. To avoid accidentally
5252
* rewriting non-AMP attributes, the transformer uses the AMP validation rules to only rename bindable
5353
* attributes as specified in the validation rules.
5454
*

packages/optimizer/lib/transformers/OptimizeImages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SrcsetWidth {
7070
}
7171

7272
/**
73-
* Sets the base width, i.e., renderered dimension measured in CSS pixels.
73+
* Sets the base width, i.e., rendered dimension measured in CSS pixels.
7474
* Returns true if srcset is needed, that is, we'll resize the image to at
7575
* least 2 supported widths (@see SRCSET_WIDTH for a list of supported widths).
7676
*

0 commit comments

Comments
 (0)