Fix typos

This commit is contained in:
Viktor Szépe 2024-02-19 16:46:07 +00:00
parent 651b3d66d1
commit 10014b85d4
13 changed files with 31 additions and 31 deletions

View File

@ -315,7 +315,7 @@ a question to [StackOverflow with the webpack tag](https://stackoverflow.com/tag
If you are twitter savvy you can tweet #webpack with your question and someone should be able to reach out and help also. If you are twitter savvy you can tweet #webpack with your question and someone should be able to reach out and help also.
If you have discovered a 🐜 or have a feature suggestion, feel free to create an issue on Github. If you have discovered a 🐜 or have a feature suggestion, feel free to create an issue on GitHub.
### License ### License
@ -405,7 +405,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
<h2 align="center">Gold Sponsors</h2> <h2 align="center">Gold Sponsors</h2>
[Become a gold sponsor](https://opencollective.com/webpack#sponsor) and get your logo on our README on Github with a link to your site. [Become a gold sponsor](https://opencollective.com/webpack#sponsor) and get your logo on our README on GitHub with a link to your site.
<div align="center"> <div align="center">
@ -444,7 +444,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
<h2 align="center">Silver Sponsors</h2> <h2 align="center">Silver Sponsors</h2>
[Become a silver sponsor](https://opencollective.com/webpack#sponsor) and get your logo on our README on Github with a link to your site. [Become a silver sponsor](https://opencollective.com/webpack#sponsor) and get your logo on our README on GitHub with a link to your site.
<div align="center"> <div align="center">
@ -483,7 +483,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
<h2 align="center">Bronze Sponsors</h2> <h2 align="center">Bronze Sponsors</h2>
[Become a bronze sponsor](https://opencollective.com/webpack#sponsor) and get your logo on our README on Github with a link to your site. [Become a bronze sponsor](https://opencollective.com/webpack#sponsor) and get your logo on our README on GitHub with a link to your site.
<div align="center"> <div align="center">
@ -593,7 +593,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
<h2 align="center">Backers</h2> <h2 align="center">Backers</h2>
[Become a backer](https://opencollective.com/webpack#backer) and get your image on our README on Github with a link to your site. [Become a backer](https://opencollective.com/webpack#backer) and get your image on our README on GitHub with a link to your site.
<a href="https://opencollective.com/webpack/backer/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/webpack/backer/0/avatar.svg?requireActive=false"></a> <a href="https://opencollective.com/webpack/backer/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/webpack/backer/0/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/webpack/backer/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/webpack/backer/1/avatar.svg?requireActive=false"></a> <a href="https://opencollective.com/webpack/backer/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/webpack/backer/1/avatar.svg?requireActive=false"></a>

View File

@ -3394,7 +3394,7 @@ class FileSystemInfo {
timestampHash: info, timestampHash: info,
hash: info || "" hash: info || ""
}), }),
fromSymlink: (fle, target, callback) => { fromSymlink: (file, target, callback) => {
callback(null, { callback(null, {
timestampHash: target, timestampHash: target,
hash: target, hash: target,

View File

@ -115,7 +115,7 @@ const asRegExp = test => {
* @template T * @template T
* Returns a lazy object. The object is lazy in the sense that the properties are * Returns a lazy object. The object is lazy in the sense that the properties are
* only evaluated when they are accessed. This is only obtained by setting a function as the value for each key. * only evaluated when they are accessed. This is only obtained by setting a function as the value for each key.
* @param {Record<string, () => T>} obj the object to covert to a lazy access object * @param {Record<string, () => T>} obj the object to convert to a lazy access object
* @returns {Object} the lazy access object * @returns {Object} the lazy access object
*/ */
const lazyObject = obj => { const lazyObject = obj => {

View File

@ -26,7 +26,7 @@ class NodeWatchFileSystem {
/** /**
* @param {Iterable<string>} files watched files * @param {Iterable<string>} files watched files
* @param {Iterable<string>} directories watched directories * @param {Iterable<string>} directories watched directories
* @param {Iterable<string>} missing watched exitance entries * @param {Iterable<string>} missing watched existence entries
* @param {number} startTime timestamp of start time * @param {number} startTime timestamp of start time
* @param {WatchOptions} options options object * @param {WatchOptions} options options object
* @param {function((Error | null)=, Map<string, FileSystemInfoEntry>, Map<string, FileSystemInfoEntry>, Set<string>, Set<string>): void} callback aggregated callback * @param {function((Error | null)=, Map<string, FileSystemInfoEntry>, Map<string, FileSystemInfoEntry>, Set<string>, Set<string>): void} callback aggregated callback

View File

@ -56,7 +56,7 @@ class EnsureChunkConditionsPlugin {
// We reached the entrypoint: fail // We reached the entrypoint: fail
if (chunkGroup.isInitial()) { if (chunkGroup.isInitial()) {
throw new Error( throw new Error(
"Cannot fullfil chunk condition of " + module.identifier() "Cannot fulfil chunk condition of " + module.identifier()
); );
} }
// Try placing in all parents // Try placing in all parents

View File

@ -160,7 +160,7 @@ const MinMaxSizeWarning = require("./MinMaxSizeWarning");
* @property {string} name * @property {string} name
* @property {Record<string, number>} sizes * @property {Record<string, number>} sizes
* @property {Set<Chunk>} chunks * @property {Set<Chunk>} chunks
* @property {Set<Chunk>} reuseableChunks * @property {Set<Chunk>} reusableChunks
* @property {Set<bigint | Chunk>} chunksKeys * @property {Set<bigint | Chunk>} chunksKeys
*/ */
@ -1177,7 +1177,7 @@ module.exports = class SplitChunksPlugin {
name, name,
sizes: {}, sizes: {},
chunks: new Set(), chunks: new Set(),
reuseableChunks: new Set(), reusableChunks: new Set(),
chunksKeys: new Set() chunksKeys: new Set()
}) })
); );

View File

@ -85,7 +85,7 @@ const path = require("path");
* @callback WatchMethod * @callback WatchMethod
* @param {Iterable<string>} files watched files * @param {Iterable<string>} files watched files
* @param {Iterable<string>} directories watched directories * @param {Iterable<string>} directories watched directories
* @param {Iterable<string>} missing watched exitance entries * @param {Iterable<string>} missing watched existence entries
* @param {number} startTime timestamp of start time * @param {number} startTime timestamp of start time
* @param {WatchOptions} options options object * @param {WatchOptions} options options object
* @param {function(Error=, Map<string, FileSystemInfoEntry | "ignore">, Map<string, FileSystemInfoEntry | "ignore">, Set<string>, Set<string>): void} callback aggregated callback * @param {function(Error=, Map<string, FileSystemInfoEntry | "ignore">, Map<string, FileSystemInfoEntry | "ignore">, Set<string>, Set<string>): void} callback aggregated callback

View File

@ -118,7 +118,7 @@ const getNextTypeIndex = ast => {
/** /**
* Get next func index * Get next func index
* *
* The Func section metadata provide informations for implemented funcs * The Func section metadata provide information for implemented funcs
* in order to have the correct index we shift the index by number of external * in order to have the correct index we shift the index by number of external
* functions. * functions.
* *

View File

@ -181,7 +181,7 @@ if (process.env.NODE_ENV === "production") {
); );
}); });
it("should be able to load with webpackFetchPriorty high, low and auto", function () { it("should be able to load with webpackFetchPriority high, low and auto", function () {
return Promise.all([ return Promise.all([
import(/* webpackFetchPriority: "high"*/ "./dir14/a"), import(/* webpackFetchPriority: "high"*/ "./dir14/a"),
import(/* webpackFetchPriority: "low"*/ "./dir14/b"), import(/* webpackFetchPriority: "low"*/ "./dir14/b"),

View File

@ -20,7 +20,7 @@ it("should automatically create contexts", function() {
expect(require("./templates/t" + mp + "l")).toBe("test template"); expect(require("./templates/t" + mp + "l")).toBe("test template");
}); });
it("should be able to require.resolve with automatical context", function() { it("should be able to require.resolve with automatic context", function() {
var template = "tmpl"; var template = "tmpl";
expect(require.resolve("./templates/" + template)).toBe( expect(require.resolve("./templates/" + template)).toBe(
require.resolve("./templates/tmpl") require.resolve("./templates/tmpl")

View File

@ -89,7 +89,7 @@ const _positionSettings = {
headerStatus: "" headerStatus: ""
}, },
settings: { settings: {
[SETTINGS.CREATEABLE]: false, [SETTINGS.CREATABLE]: false,
[SETTINGS.DELETABLE]: false [SETTINGS.DELETABLE]: false
} }
}, },
@ -466,7 +466,7 @@ async function _createToolbarTable(setEvent) {
_staticData, _staticData,
privileges.PRIVILEGE.SICONNECTPOSITION privileges.PRIVILEGE.SICONNECTPOSITION
) && ) &&
_positionSettings.settings[SETTINGS.CREATEABLE] _positionSettings.settings[SETTINGS.CREATABLE]
) { ) {
toolbar.add(_buttonConnectPosition(onConnectPosition)); toolbar.add(_buttonConnectPosition(onConnectPosition));
} }
@ -507,7 +507,7 @@ async function _createToolbarTable(setEvent) {
_staticData, _staticData,
privileges.PRIVILEGE.COPYORDERPOS privileges.PRIVILEGE.COPYORDERPOS
) && ) &&
_positionSettings.settings[SETTINGS.CREATEABLE] _positionSettings.settings[SETTINGS.CREATABLE]
) { ) {
toolbar.add( toolbar.add(
buttonCopyJobToOrderPos(onJobToOrderPos.bind(this, true)) buttonCopyJobToOrderPos(onJobToOrderPos.bind(this, true))
@ -525,7 +525,7 @@ async function _createToolbarTable(setEvent) {
{ {
const s = { const s = {
canBeCreated: canBeCreated:
_positionSettings.settings[SETTINGS.CREATEABLE] || false _positionSettings.settings[SETTINGS.CREATABLE] || false
}; };
if (s.canBeCreated) { if (s.canBeCreated) {
if ( if (
@ -685,7 +685,7 @@ async function _createToolbarTable(setEvent) {
_staticData, _staticData,
privileges.PRIVILEGE.SICONNECTPOSITION privileges.PRIVILEGE.SICONNECTPOSITION
) && ) &&
_positionSettings.settings[SETTINGS.CREATEABLE] _positionSettings.settings[SETTINGS.CREATABLE]
) { ) {
toolbar.add(_buttonConnectPosition(onConnectPosition)); toolbar.add(_buttonConnectPosition(onConnectPosition));
} }
@ -765,7 +765,7 @@ async function _createToolbarTable(setEvent) {
_staticData, _staticData,
privileges.PRIVILEGE.COPYORDERPOS privileges.PRIVILEGE.COPYORDERPOS
) && ) &&
_positionSettings.settings[SETTINGS.CREATEABLE] _positionSettings.settings[SETTINGS.CREATABLE]
) { ) {
toolbar.add(buttonCopyJobToOrderPos(onJobToOrderPos.bind(this, true))); toolbar.add(buttonCopyJobToOrderPos(onJobToOrderPos.bind(this, true)));
} }
@ -806,7 +806,7 @@ async function _createToolbarTable(setEvent) {
case buttons.STATE.ciPositionTableMenu: case buttons.STATE.ciPositionTableMenu:
{ {
const s = { const s = {
canBeCreated: _positionSettings.settings[SETTINGS.CREATEABLE] || false canBeCreated: _positionSettings.settings[SETTINGS.CREATABLE] || false
}; };
if (s.canBeCreated) { if (s.canBeCreated) {
if ( if (
@ -843,7 +843,7 @@ async function _createToolbarTable(setEvent) {
case buttons.STATE.ciPositionTableMenuMultiple: case buttons.STATE.ciPositionTableMenuMultiple:
{ {
const s = { const s = {
canBeCreated: _positionSettings.settings[SETTINGS.CREATEABLE] || false canBeCreated: _positionSettings.settings[SETTINGS.CREATABLE] || false
}; };
if (s.canBeCreated) { if (s.canBeCreated) {
if ( if (
@ -1017,7 +1017,7 @@ export async function getDataAndShowTable(
default: default:
break; break;
} }
_positionSettings.settings[SETTINGS.CREATEABLE] = settingsData.canBeCreated; _positionSettings.settings[SETTINGS.CREATABLE] = settingsData.canBeCreated;
_positionSettings.settings[SETTINGS.DELETABLE] = settingsData.canBeDeleted; _positionSettings.settings[SETTINGS.DELETABLE] = settingsData.canBeDeleted;
_positionSettings.settings[SETTINGS.MULTIPLEDELETE] = _positionSettings.settings[SETTINGS.MULTIPLEDELETE] =
settingsData.showButtonDeleteAndMoveNCH; settingsData.showButtonDeleteAndMoveNCH;
@ -2720,7 +2720,7 @@ function _showFormButtons(manualSetEvent) {
if (manualSetEvent) { if (manualSetEvent) {
_formEvent = manualSetEvent; _formEvent = manualSetEvent;
} }
s.canBeCreated = _positionSettings.settings[SETTINGS.CREATEABLE]; s.canBeCreated = _positionSettings.settings[SETTINGS.CREATABLE];
s.canBeDeleted = _positionSettings.settings[SETTINGS.DELETABLE]; s.canBeDeleted = _positionSettings.settings[SETTINGS.DELETABLE];
if ( if (
_formData && _formData &&
@ -3003,7 +3003,7 @@ function _showParentTable(forceReload = true) {
} }
} }
} }
function _setParentModulSettings(moduleName) { function _setParentModuleSettings(moduleName) {
switch (moduleName) { switch (moduleName) {
case ModuleNameEnum.JOB: case ModuleNameEnum.JOB:
_parentModuleSettings = { _parentModuleSettings = {
@ -3051,7 +3051,7 @@ export async function initialize(
moduleName, moduleName,
previousTableTitle previousTableTitle
) { ) {
_setParentModulSettings(moduleName); _setParentModuleSettings(moduleName);
_tableContainerId = "#" + newContainerId; _tableContainerId = "#" + newContainerId;
_formIdName = moduleName + "_" + newContainerId + "-form"; _formIdName = moduleName + "_" + newContainerId + "-form";
_previousTableTitle = previousTableTitle; _previousTableTitle = previousTableTitle;
@ -3075,7 +3075,7 @@ export async function renderFormInDialog(contentId, data, addTask = false) {
jpos_headertype: 1, jpos_headertype: 1,
jpos_subposno: 1 jpos_subposno: 1
}; };
_setParentModulSettings(ModuleNameEnum.JOB); _setParentModuleSettings(ModuleNameEnum.JOB);
_isFormInDialog = true; _isFormInDialog = true;
_isFormInDialogSelector = contentId; _isFormInDialogSelector = contentId;
_isFormInDialogJobPK = pkForJobService; _isFormInDialogJobPK = pkForJobService;
@ -3089,7 +3089,7 @@ export async function renderFormInDialog(contentId, data, addTask = false) {
getPKfromModule(), getPKfromModule(),
_getModuleType() _getModuleType()
); );
_positionSettings.settings[SETTINGS.CREATEABLE] = settings.canBeCreated; _positionSettings.settings[SETTINGS.CREATABLE] = settings.canBeCreated;
_positionSettings.settings[SETTINGS.DELETABLE] = settings.canBeDeleted; _positionSettings.settings[SETTINGS.DELETABLE] = settings.canBeDeleted;
const emailOfCurrentUser = await employeeData.getEmplList(); const emailOfCurrentUser = await employeeData.getEmplList();
_generalDataEmplLists = { _generalDataEmplLists = {

View File

@ -8,7 +8,7 @@ it("should not mangle export when destructuring module", () => {
expect(objCanMangle).toBe(false) expect(objCanMangle).toBe(false)
}); });
it("should mangle export when destructuring module's porperty", () => { it("should mangle export when destructuring module's property", () => {
const { a, b } = module.obj2 const { a, b } = module.obj2
const { obj2CanMangle } = module const { obj2CanMangle } = module
expect(a).toBe("a"); expect(a).toBe("a");

View File

@ -5,7 +5,7 @@ it("should contain publicPath prefix in [url] and resolve relatively to fileCont
expect(source).toMatch("//# sourceMappingURL=https://10.10.10.10/project/sourcemaps/test.js.map"); expect(source).toMatch("//# sourceMappingURL=https://10.10.10.10/project/sourcemaps/test.js.map");
}); });
it("should write sourcemap file relative fo fileContext", function() { it("should write sourcemap file relative to fileContext", function() {
var fs = require("fs"), var fs = require("fs"),
path = require("path"); path = require("path");
expect(fs.existsSync(path.join(__dirname, "sourcemaps/test.js.map"))).toBe(true); expect(fs.existsSync(path.join(__dirname, "sourcemaps/test.js.map"))).toBe(true);