Fix typos
This commit is contained in:
parent
651b3d66d1
commit
10014b85d4
10
README.md
10
README.md
|
@ -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 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
|
||||
|
||||
|
@ -405,7 +405,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
|
|||
|
||||
<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">
|
||||
|
||||
|
@ -444,7 +444,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
|
|||
|
||||
<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">
|
||||
|
||||
|
@ -483,7 +483,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
|
|||
|
||||
<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">
|
||||
|
||||
|
@ -593,7 +593,7 @@ src="https://static.monei.net/monei-logo.svg" height="30" alt="MONEI"></a>
|
|||
|
||||
<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/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/webpack/backer/1/avatar.svg?requireActive=false"></a>
|
||||
|
|
|
@ -3394,7 +3394,7 @@ class FileSystemInfo {
|
|||
timestampHash: info,
|
||||
hash: info || ""
|
||||
}),
|
||||
fromSymlink: (fle, target, callback) => {
|
||||
fromSymlink: (file, target, callback) => {
|
||||
callback(null, {
|
||||
timestampHash: target,
|
||||
hash: target,
|
||||
|
|
|
@ -115,7 +115,7 @@ const asRegExp = test => {
|
|||
* @template T
|
||||
* 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.
|
||||
* @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
|
||||
*/
|
||||
const lazyObject = obj => {
|
||||
|
|
|
@ -26,7 +26,7 @@ class NodeWatchFileSystem {
|
|||
/**
|
||||
* @param {Iterable<string>} files watched files
|
||||
* @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 {WatchOptions} options options object
|
||||
* @param {function((Error | null)=, Map<string, FileSystemInfoEntry>, Map<string, FileSystemInfoEntry>, Set<string>, Set<string>): void} callback aggregated callback
|
||||
|
|
|
@ -56,7 +56,7 @@ class EnsureChunkConditionsPlugin {
|
|||
// We reached the entrypoint: fail
|
||||
if (chunkGroup.isInitial()) {
|
||||
throw new Error(
|
||||
"Cannot fullfil chunk condition of " + module.identifier()
|
||||
"Cannot fulfil chunk condition of " + module.identifier()
|
||||
);
|
||||
}
|
||||
// Try placing in all parents
|
||||
|
|
|
@ -160,7 +160,7 @@ const MinMaxSizeWarning = require("./MinMaxSizeWarning");
|
|||
* @property {string} name
|
||||
* @property {Record<string, number>} sizes
|
||||
* @property {Set<Chunk>} chunks
|
||||
* @property {Set<Chunk>} reuseableChunks
|
||||
* @property {Set<Chunk>} reusableChunks
|
||||
* @property {Set<bigint | Chunk>} chunksKeys
|
||||
*/
|
||||
|
||||
|
@ -1177,7 +1177,7 @@ module.exports = class SplitChunksPlugin {
|
|||
name,
|
||||
sizes: {},
|
||||
chunks: new Set(),
|
||||
reuseableChunks: new Set(),
|
||||
reusableChunks: new Set(),
|
||||
chunksKeys: new Set()
|
||||
})
|
||||
);
|
||||
|
|
|
@ -85,7 +85,7 @@ const path = require("path");
|
|||
* @callback WatchMethod
|
||||
* @param {Iterable<string>} files watched files
|
||||
* @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 {WatchOptions} options options object
|
||||
* @param {function(Error=, Map<string, FileSystemInfoEntry | "ignore">, Map<string, FileSystemInfoEntry | "ignore">, Set<string>, Set<string>): void} callback aggregated callback
|
||||
|
|
|
@ -118,7 +118,7 @@ const getNextTypeIndex = ast => {
|
|||
/**
|
||||
* 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
|
||||
* functions.
|
||||
*
|
||||
|
|
|
@ -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([
|
||||
import(/* webpackFetchPriority: "high"*/ "./dir14/a"),
|
||||
import(/* webpackFetchPriority: "low"*/ "./dir14/b"),
|
||||
|
|
|
@ -20,7 +20,7 @@ it("should automatically create contexts", function() {
|
|||
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";
|
||||
expect(require.resolve("./templates/" + template)).toBe(
|
||||
require.resolve("./templates/tmpl")
|
||||
|
|
|
@ -89,7 +89,7 @@ const _positionSettings = {
|
|||
headerStatus: ""
|
||||
},
|
||||
settings: {
|
||||
[SETTINGS.CREATEABLE]: false,
|
||||
[SETTINGS.CREATABLE]: false,
|
||||
[SETTINGS.DELETABLE]: false
|
||||
}
|
||||
},
|
||||
|
@ -466,7 +466,7 @@ async function _createToolbarTable(setEvent) {
|
|||
_staticData,
|
||||
privileges.PRIVILEGE.SICONNECTPOSITION
|
||||
) &&
|
||||
_positionSettings.settings[SETTINGS.CREATEABLE]
|
||||
_positionSettings.settings[SETTINGS.CREATABLE]
|
||||
) {
|
||||
toolbar.add(_buttonConnectPosition(onConnectPosition));
|
||||
}
|
||||
|
@ -507,7 +507,7 @@ async function _createToolbarTable(setEvent) {
|
|||
_staticData,
|
||||
privileges.PRIVILEGE.COPYORDERPOS
|
||||
) &&
|
||||
_positionSettings.settings[SETTINGS.CREATEABLE]
|
||||
_positionSettings.settings[SETTINGS.CREATABLE]
|
||||
) {
|
||||
toolbar.add(
|
||||
buttonCopyJobToOrderPos(onJobToOrderPos.bind(this, true))
|
||||
|
@ -525,7 +525,7 @@ async function _createToolbarTable(setEvent) {
|
|||
{
|
||||
const s = {
|
||||
canBeCreated:
|
||||
_positionSettings.settings[SETTINGS.CREATEABLE] || false
|
||||
_positionSettings.settings[SETTINGS.CREATABLE] || false
|
||||
};
|
||||
if (s.canBeCreated) {
|
||||
if (
|
||||
|
@ -685,7 +685,7 @@ async function _createToolbarTable(setEvent) {
|
|||
_staticData,
|
||||
privileges.PRIVILEGE.SICONNECTPOSITION
|
||||
) &&
|
||||
_positionSettings.settings[SETTINGS.CREATEABLE]
|
||||
_positionSettings.settings[SETTINGS.CREATABLE]
|
||||
) {
|
||||
toolbar.add(_buttonConnectPosition(onConnectPosition));
|
||||
}
|
||||
|
@ -765,7 +765,7 @@ async function _createToolbarTable(setEvent) {
|
|||
_staticData,
|
||||
privileges.PRIVILEGE.COPYORDERPOS
|
||||
) &&
|
||||
_positionSettings.settings[SETTINGS.CREATEABLE]
|
||||
_positionSettings.settings[SETTINGS.CREATABLE]
|
||||
) {
|
||||
toolbar.add(buttonCopyJobToOrderPos(onJobToOrderPos.bind(this, true)));
|
||||
}
|
||||
|
@ -806,7 +806,7 @@ async function _createToolbarTable(setEvent) {
|
|||
case buttons.STATE.ciPositionTableMenu:
|
||||
{
|
||||
const s = {
|
||||
canBeCreated: _positionSettings.settings[SETTINGS.CREATEABLE] || false
|
||||
canBeCreated: _positionSettings.settings[SETTINGS.CREATABLE] || false
|
||||
};
|
||||
if (s.canBeCreated) {
|
||||
if (
|
||||
|
@ -843,7 +843,7 @@ async function _createToolbarTable(setEvent) {
|
|||
case buttons.STATE.ciPositionTableMenuMultiple:
|
||||
{
|
||||
const s = {
|
||||
canBeCreated: _positionSettings.settings[SETTINGS.CREATEABLE] || false
|
||||
canBeCreated: _positionSettings.settings[SETTINGS.CREATABLE] || false
|
||||
};
|
||||
if (s.canBeCreated) {
|
||||
if (
|
||||
|
@ -1017,7 +1017,7 @@ export async function getDataAndShowTable(
|
|||
default:
|
||||
break;
|
||||
}
|
||||
_positionSettings.settings[SETTINGS.CREATEABLE] = settingsData.canBeCreated;
|
||||
_positionSettings.settings[SETTINGS.CREATABLE] = settingsData.canBeCreated;
|
||||
_positionSettings.settings[SETTINGS.DELETABLE] = settingsData.canBeDeleted;
|
||||
_positionSettings.settings[SETTINGS.MULTIPLEDELETE] =
|
||||
settingsData.showButtonDeleteAndMoveNCH;
|
||||
|
@ -2720,7 +2720,7 @@ function _showFormButtons(manualSetEvent) {
|
|||
if (manualSetEvent) {
|
||||
_formEvent = manualSetEvent;
|
||||
}
|
||||
s.canBeCreated = _positionSettings.settings[SETTINGS.CREATEABLE];
|
||||
s.canBeCreated = _positionSettings.settings[SETTINGS.CREATABLE];
|
||||
s.canBeDeleted = _positionSettings.settings[SETTINGS.DELETABLE];
|
||||
if (
|
||||
_formData &&
|
||||
|
@ -3003,7 +3003,7 @@ function _showParentTable(forceReload = true) {
|
|||
}
|
||||
}
|
||||
}
|
||||
function _setParentModulSettings(moduleName) {
|
||||
function _setParentModuleSettings(moduleName) {
|
||||
switch (moduleName) {
|
||||
case ModuleNameEnum.JOB:
|
||||
_parentModuleSettings = {
|
||||
|
@ -3051,7 +3051,7 @@ export async function initialize(
|
|||
moduleName,
|
||||
previousTableTitle
|
||||
) {
|
||||
_setParentModulSettings(moduleName);
|
||||
_setParentModuleSettings(moduleName);
|
||||
_tableContainerId = "#" + newContainerId;
|
||||
_formIdName = moduleName + "_" + newContainerId + "-form";
|
||||
_previousTableTitle = previousTableTitle;
|
||||
|
@ -3075,7 +3075,7 @@ export async function renderFormInDialog(contentId, data, addTask = false) {
|
|||
jpos_headertype: 1,
|
||||
jpos_subposno: 1
|
||||
};
|
||||
_setParentModulSettings(ModuleNameEnum.JOB);
|
||||
_setParentModuleSettings(ModuleNameEnum.JOB);
|
||||
_isFormInDialog = true;
|
||||
_isFormInDialogSelector = contentId;
|
||||
_isFormInDialogJobPK = pkForJobService;
|
||||
|
@ -3089,7 +3089,7 @@ export async function renderFormInDialog(contentId, data, addTask = false) {
|
|||
getPKfromModule(),
|
||||
_getModuleType()
|
||||
);
|
||||
_positionSettings.settings[SETTINGS.CREATEABLE] = settings.canBeCreated;
|
||||
_positionSettings.settings[SETTINGS.CREATABLE] = settings.canBeCreated;
|
||||
_positionSettings.settings[SETTINGS.DELETABLE] = settings.canBeDeleted;
|
||||
const emailOfCurrentUser = await employeeData.getEmplList();
|
||||
_generalDataEmplLists = {
|
||||
|
|
|
@ -8,7 +8,7 @@ it("should not mangle export when destructuring module", () => {
|
|||
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 { obj2CanMangle } = module
|
||||
expect(a).toBe("a");
|
||||
|
|
|
@ -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");
|
||||
});
|
||||
|
||||
it("should write sourcemap file relative fo fileContext", function() {
|
||||
it("should write sourcemap file relative to fileContext", function() {
|
||||
var fs = require("fs"),
|
||||
path = require("path");
|
||||
expect(fs.existsSync(path.join(__dirname, "sourcemaps/test.js.map"))).toBe(true);
|
||||
|
|
Loading…
Reference in New Issue