@softarc/native-federation 3.5.5 → 4.0.0-RC10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +33 -5
- package/src/config.d.ts +4 -1
- package/src/config.js +4 -6
- package/src/domain.d.ts +2 -0
- package/src/domain.js +2 -0
- package/src/index.d.ts +10 -1
- package/src/index.js +10 -5
- package/src/internal.d.ts +13 -0
- package/src/internal.js +10 -0
- package/src/lib/config/configuration-context.js +3 -9
- package/src/lib/config/default-skip-list.d.ts +4 -0
- package/src/lib/config/default-skip-list.js +31 -0
- package/src/lib/config/remove-unused-deps.d.ts +3 -0
- package/src/lib/config/remove-unused-deps.js +10 -0
- package/src/lib/config/share-utils.d.ts +6 -18
- package/src/lib/config/share-utils.js +49 -128
- package/src/lib/config/with-native-federation.d.ts +1 -1
- package/src/lib/config/with-native-federation.js +48 -75
- package/src/lib/core/build-adapter.d.ts +3 -28
- package/src/lib/core/build-adapter.js +8 -13
- package/src/lib/core/build-for-federation.d.ts +4 -10
- package/src/lib/core/build-for-federation.js +84 -79
- package/src/lib/core/bundle-exposed-and-mappings.d.ts +6 -10
- package/src/lib/core/bundle-exposed-and-mappings.js +78 -60
- package/src/lib/core/bundle-shared.d.ts +11 -6
- package/src/lib/core/bundle-shared.js +88 -72
- package/src/lib/core/default-external-list.js +1 -8
- package/src/lib/core/federation-builder.d.ts +11 -6
- package/src/lib/core/federation-builder.js +27 -21
- package/src/lib/core/federation-cache.d.ts +8 -0
- package/src/lib/core/federation-cache.js +11 -0
- package/src/lib/core/get-externals.d.ts +1 -1
- package/src/lib/core/get-externals.js +2 -6
- package/src/lib/core/normalize-options.d.ts +12 -0
- package/src/lib/core/normalize-options.js +57 -0
- package/src/lib/core/rebuild-for-federation.d.ts +4 -0
- package/src/lib/core/rebuild-for-federation.js +37 -0
- package/src/lib/core/write-federation-info.d.ts +2 -2
- package/src/lib/core/write-federation-info.js +3 -8
- package/src/lib/core/write-import-map.d.ts +6 -3
- package/src/lib/core/write-import-map.js +13 -9
- package/src/lib/domain/config/external-config.contract.d.ts +43 -0
- package/src/lib/domain/config/external-config.contract.js +1 -0
- package/src/lib/domain/config/federation-config.contract.d.ts +35 -0
- package/src/lib/domain/config/federation-config.contract.js +1 -0
- package/src/lib/domain/config/index.d.ts +3 -0
- package/src/lib/domain/config/index.js +1 -0
- package/src/lib/{core/default-skip-list.d.ts → domain/config/skip-list.contract.d.ts} +0 -3
- package/src/lib/domain/config/skip-list.contract.js +1 -0
- package/src/lib/domain/config/with-native-federation.contract.d.ts +2 -0
- package/src/lib/domain/config/with-native-federation.contract.js +1 -0
- package/src/lib/domain/core/build-adapter.contract.d.ts +40 -0
- package/src/lib/domain/core/build-adapter.contract.js +1 -0
- package/src/lib/domain/core/build-notification-options.contract.d.ts +9 -0
- package/src/lib/domain/core/build-notification-options.contract.js +6 -0
- package/src/lib/domain/core/chunk.d.ts +2 -0
- package/src/lib/domain/core/chunk.js +8 -0
- package/src/lib/domain/core/federation-cache.contract.d.ts +7 -0
- package/src/lib/domain/core/federation-cache.contract.js +1 -0
- package/src/lib/domain/core/federation-info.contract.d.ts +33 -0
- package/src/lib/domain/core/federation-info.contract.js +1 -0
- package/src/lib/domain/core/federation-options.contract.d.ts +21 -0
- package/src/lib/domain/core/federation-options.contract.js +1 -0
- package/src/lib/domain/core/index.d.ts +6 -0
- package/src/lib/domain/core/index.js +2 -0
- package/src/lib/domain/utils/index.d.ts +2 -0
- package/src/lib/domain/utils/index.js +1 -0
- package/src/lib/domain/utils/keyvaluepair.contract.d.ts +4 -0
- package/src/lib/domain/utils/keyvaluepair.contract.js +1 -0
- package/src/lib/domain/utils/mapped-path.contract.d.ts +1 -0
- package/src/lib/domain/utils/mapped-path.contract.js +5 -0
- package/src/lib/domain/utils/used-dependencies.contract.d.ts +5 -0
- package/src/lib/domain/utils/used-dependencies.contract.js +1 -0
- package/src/lib/utils/build-result-map.d.ts +3 -2
- package/src/lib/utils/build-result-map.js +14 -13
- package/src/lib/utils/{bundle-caching.d.ts → cache-persistence.d.ts} +6 -4
- package/src/lib/utils/cache-persistence.js +66 -0
- package/src/lib/utils/errors.js +1 -6
- package/src/lib/utils/get-external-imports.js +5 -10
- package/src/lib/utils/get-used-dependencies.d.ts +7 -0
- package/src/lib/utils/get-used-dependencies.js +123 -0
- package/src/lib/utils/hash-file.js +3 -8
- package/src/lib/utils/logger.js +10 -16
- package/src/lib/utils/mapped-paths.d.ts +7 -10
- package/src/lib/utils/mapped-paths.js +18 -37
- package/src/lib/utils/normalize.js +2 -7
- package/src/lib/utils/package-info.js +36 -47
- package/src/lib/utils/rebuild-queue.d.ts +14 -1
- package/src/lib/utils/rebuild-queue.js +36 -21
- package/src/lib/utils/resolve-glob.js +7 -12
- package/src/lib/utils/resolve-wildcard-keys.js +9 -15
- package/src/lib/utils/rewrite-chunk-imports.d.ts +0 -2
- package/src/lib/utils/rewrite-chunk-imports.js +13 -29
- package/LICENSE +0 -8
- package/README.md +0 -509
- package/build.d.ts +0 -1
- package/build.js +0 -5
- package/build.js.map +0 -1
- package/src/build.d.ts +0 -19
- package/src/build.js +0 -38
- package/src/build.js.map +0 -1
- package/src/config.js.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/config/configuration-context.js.map +0 -1
- package/src/lib/config/federation-config.d.ts +0 -55
- package/src/lib/config/federation-config.js +0 -3
- package/src/lib/config/federation-config.js.map +0 -1
- package/src/lib/config/share-utils.js.map +0 -1
- package/src/lib/config/with-native-federation.js.map +0 -1
- package/src/lib/core/build-adapter.js.map +0 -1
- package/src/lib/core/build-for-federation.js.map +0 -1
- package/src/lib/core/bundle-exposed-and-mappings.js.map +0 -1
- package/src/lib/core/bundle-shared.js.map +0 -1
- package/src/lib/core/default-external-list.js.map +0 -1
- package/src/lib/core/default-server-deps-list.d.ts +0 -2
- package/src/lib/core/default-server-deps-list.js +0 -10
- package/src/lib/core/default-server-deps-list.js.map +0 -1
- package/src/lib/core/default-skip-list.js +0 -49
- package/src/lib/core/default-skip-list.js.map +0 -1
- package/src/lib/core/federation-builder.js.map +0 -1
- package/src/lib/core/federation-options.d.ts +0 -14
- package/src/lib/core/federation-options.js +0 -3
- package/src/lib/core/federation-options.js.map +0 -1
- package/src/lib/core/get-externals.js.map +0 -1
- package/src/lib/core/load-federation-config.d.ts +0 -3
- package/src/lib/core/load-federation-config.js +0 -24
- package/src/lib/core/load-federation-config.js.map +0 -1
- package/src/lib/core/remove-unused-deps.d.ts +0 -2
- package/src/lib/core/remove-unused-deps.js +0 -98
- package/src/lib/core/remove-unused-deps.js.map +0 -1
- package/src/lib/core/write-federation-info.js.map +0 -1
- package/src/lib/core/write-import-map.js.map +0 -1
- package/src/lib/utils/build-result-map.js.map +0 -1
- package/src/lib/utils/build-utils.d.ts +0 -2
- package/src/lib/utils/build-utils.js +0 -9
- package/src/lib/utils/build-utils.js.map +0 -1
- package/src/lib/utils/bundle-caching.js +0 -78
- package/src/lib/utils/bundle-caching.js.map +0 -1
- package/src/lib/utils/config-utils.d.ts +0 -2
- package/src/lib/utils/config-utils.js +0 -13
- package/src/lib/utils/config-utils.js.map +0 -1
- package/src/lib/utils/errors.js.map +0 -1
- package/src/lib/utils/get-external-imports.js.map +0 -1
- package/src/lib/utils/hash-file.js.map +0 -1
- package/src/lib/utils/logger.js.map +0 -1
- package/src/lib/utils/mapped-paths.js.map +0 -1
- package/src/lib/utils/normalize.js.map +0 -1
- package/src/lib/utils/package-info.js.map +0 -1
- package/src/lib/utils/rebuild-queue.js.map +0 -1
- package/src/lib/utils/resolve-glob.js.map +0 -1
- package/src/lib/utils/resolve-wildcard-keys.js.map +0 -1
- package/src/lib/utils/rewrite-chunk-imports.js.map +0 -1
|
@@ -1,48 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.RebuildQueue = void 0;
|
|
4
|
-
const logger_1 = require("./logger");
|
|
5
|
-
class RebuildQueue {
|
|
1
|
+
import { logger } from './logger.js';
|
|
2
|
+
export class RebuildQueue {
|
|
6
3
|
activeBuilds = new Map();
|
|
7
4
|
buildCounter = 0;
|
|
8
|
-
async
|
|
5
|
+
async track(rebuildFn, interruptPromise) {
|
|
9
6
|
const buildId = ++this.buildCounter;
|
|
10
|
-
const pendingCancellations = Array.from(this.activeBuilds.values()).map(
|
|
11
|
-
|
|
12
|
-
return
|
|
7
|
+
const pendingCancellations = Array.from(this.activeBuilds.values()).map(buildControl => {
|
|
8
|
+
buildControl.controller.abort();
|
|
9
|
+
return buildControl.buildFinished.promise;
|
|
13
10
|
});
|
|
14
11
|
if (pendingCancellations.length > 0) {
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
if (pendingCancellations.length > 0) {
|
|
12
|
+
logger.info(`Aborting ${pendingCancellations.length} bundling task(s)..`);
|
|
18
13
|
await Promise.all(pendingCancellations);
|
|
19
14
|
}
|
|
20
|
-
let
|
|
21
|
-
const completionPromise = new Promise(
|
|
22
|
-
|
|
15
|
+
let resolveCompletion;
|
|
16
|
+
const completionPromise = new Promise(resolve => {
|
|
17
|
+
resolveCompletion = resolve;
|
|
23
18
|
});
|
|
24
19
|
const control = {
|
|
25
20
|
controller: new AbortController(),
|
|
26
21
|
buildFinished: {
|
|
27
|
-
resolve:
|
|
22
|
+
resolve: resolveCompletion,
|
|
28
23
|
promise: completionPromise,
|
|
29
24
|
},
|
|
30
25
|
};
|
|
31
26
|
this.activeBuilds.set(buildId, control);
|
|
27
|
+
const buildPromise = rebuildFn(control.controller.signal)
|
|
28
|
+
.then(result => ({ type: 'completed', result }))
|
|
29
|
+
.catch(error => ({ type: 'completed', result: { success: false, error } }));
|
|
30
|
+
let trackResult;
|
|
32
31
|
try {
|
|
33
|
-
|
|
32
|
+
if (interruptPromise) {
|
|
33
|
+
const interruptResult = interruptPromise.then(value => ({
|
|
34
|
+
type: 'interrupted',
|
|
35
|
+
value,
|
|
36
|
+
}));
|
|
37
|
+
const raceResult = await Promise.race([buildPromise, interruptResult]);
|
|
38
|
+
if (raceResult.type === 'interrupted') {
|
|
39
|
+
control.controller.abort();
|
|
40
|
+
await buildPromise;
|
|
41
|
+
trackResult = raceResult;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
trackResult = raceResult;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
trackResult = await buildPromise;
|
|
49
|
+
}
|
|
34
50
|
}
|
|
35
51
|
finally {
|
|
36
52
|
control.buildFinished.resolve();
|
|
37
53
|
this.activeBuilds.delete(buildId);
|
|
38
54
|
}
|
|
55
|
+
return trackResult;
|
|
39
56
|
}
|
|
40
57
|
dispose() {
|
|
41
|
-
for (const
|
|
42
|
-
|
|
58
|
+
for (const buildControl of this.activeBuilds.values()) {
|
|
59
|
+
buildControl.controller.abort();
|
|
43
60
|
}
|
|
44
61
|
this.activeBuilds.clear();
|
|
45
62
|
}
|
|
46
63
|
}
|
|
47
|
-
exports.RebuildQueue = RebuildQueue;
|
|
48
|
-
//# sourceMappingURL=rebuild-queue.js.map
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const fs = tslib_1.__importStar(require("fs"));
|
|
6
|
-
const path = tslib_1.__importStar(require("path"));
|
|
7
|
-
function resolveGlobSync(pattern, baseDir = process.cwd()) {
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
export function resolveGlobSync(pattern, baseDir = process.cwd()) {
|
|
8
4
|
if (pattern.startsWith('./')) {
|
|
9
5
|
pattern = pattern.substring(2);
|
|
10
6
|
}
|
|
@@ -19,16 +15,15 @@ function resolveGlobSync(pattern, baseDir = process.cwd()) {
|
|
|
19
15
|
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
20
16
|
if (segment === '*') {
|
|
21
17
|
entries
|
|
22
|
-
.filter(
|
|
23
|
-
.forEach(
|
|
18
|
+
.filter(entry => entry.isDirectory())
|
|
19
|
+
.forEach(entry => search(path.join(dir, entry.name), segmentIndex + 1));
|
|
24
20
|
}
|
|
25
21
|
else {
|
|
26
22
|
entries
|
|
27
|
-
.filter(
|
|
28
|
-
.forEach(
|
|
23
|
+
.filter(entry => entry.name === segment)
|
|
24
|
+
.forEach(entry => search(path.join(dir, entry.name), segmentIndex + 1));
|
|
29
25
|
}
|
|
30
26
|
}
|
|
31
27
|
search(baseDir, 0);
|
|
32
28
|
return results;
|
|
33
29
|
}
|
|
34
|
-
//# sourceMappingURL=resolve-glob.js.map
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const fast_glob_1 = tslib_1.__importDefault(require("fast-glob"));
|
|
7
|
-
const fs = tslib_1.__importStar(require("fs"));
|
|
8
|
-
const path = tslib_1.__importStar(require("path"));
|
|
9
|
-
const logger_1 = require("./logger");
|
|
1
|
+
import fg from 'fast-glob';
|
|
2
|
+
import * as fs from 'fs';
|
|
3
|
+
import * as path from 'path';
|
|
4
|
+
import { logger } from './logger.js';
|
|
10
5
|
// TypeScript's module resolution for directories checks these in order
|
|
11
6
|
// @see https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution
|
|
12
7
|
const TS_INDEX_FILES = [
|
|
@@ -33,7 +28,7 @@ const TS_INDEX_FILES = [
|
|
|
33
28
|
*
|
|
34
29
|
// @see https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution
|
|
35
30
|
*/
|
|
36
|
-
function resolveTsConfigWildcard(keyPattern, valuePattern, cwd) {
|
|
31
|
+
export function resolveTsConfigWildcard(keyPattern, valuePattern, cwd) {
|
|
37
32
|
const normalizedPattern = valuePattern.replace(/^\.?\/+/, '');
|
|
38
33
|
const asteriskIndex = normalizedPattern.indexOf('*');
|
|
39
34
|
if (asteriskIndex === -1) {
|
|
@@ -74,9 +69,9 @@ function resolveTsConfigWildcard(keyPattern, valuePattern, cwd) {
|
|
|
74
69
|
}
|
|
75
70
|
const key = keyPattern.replace('*', entry);
|
|
76
71
|
if (fullPathStats.isDirectory()) {
|
|
77
|
-
const indexFile = TS_INDEX_FILES.find(
|
|
72
|
+
const indexFile = TS_INDEX_FILES.find(indexFile => fs.existsSync(path.join(fullPath, indexFile)));
|
|
78
73
|
if (!indexFile) {
|
|
79
|
-
|
|
74
|
+
logger.warn(`[shared-mappings] Internal lib '${key}' does not contain an entryPoint (barrel file).`);
|
|
80
75
|
continue;
|
|
81
76
|
}
|
|
82
77
|
modulePath = path.join(modulePath, indexFile);
|
|
@@ -101,7 +96,7 @@ function resolveTsConfigWildcard(keyPattern, valuePattern, cwd) {
|
|
|
101
96
|
*
|
|
102
97
|
* @see https://nodejs.org/api/packages.html#subpath-patterns
|
|
103
98
|
*/
|
|
104
|
-
function resolvePackageJsonExportsWildcard(keyPattern, valuePattern, cwd) {
|
|
99
|
+
export function resolvePackageJsonExportsWildcard(keyPattern, valuePattern, cwd) {
|
|
105
100
|
const normalizedPattern = valuePattern.replace(/^\.?\/+/, '');
|
|
106
101
|
const asteriskIndex = normalizedPattern.indexOf('*');
|
|
107
102
|
if (asteriskIndex === -1) {
|
|
@@ -110,7 +105,7 @@ function resolvePackageJsonExportsWildcard(keyPattern, valuePattern, cwd) {
|
|
|
110
105
|
const prefix = normalizedPattern.substring(0, asteriskIndex);
|
|
111
106
|
const suffix = normalizedPattern.substring(asteriskIndex + 1);
|
|
112
107
|
// fast-glob requires **/* pattern for matching files at any depth
|
|
113
|
-
const files =
|
|
108
|
+
const files = fg.sync(prefix + '**/*' + suffix, {
|
|
114
109
|
cwd,
|
|
115
110
|
onlyFiles: true,
|
|
116
111
|
deep: Infinity,
|
|
@@ -129,4 +124,3 @@ function resolvePackageJsonExportsWildcard(keyPattern, valuePattern, cwd) {
|
|
|
129
124
|
}
|
|
130
125
|
return keys;
|
|
131
126
|
}
|
|
132
|
-
//# sourceMappingURL=resolve-wildcard-keys.js.map
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.deriveInternalName = deriveInternalName;
|
|
7
|
-
const tslib_1 = require("tslib");
|
|
8
|
-
const ts = tslib_1.__importStar(require("typescript"));
|
|
9
|
-
const fs = tslib_1.__importStar(require("fs"));
|
|
10
|
-
const path = tslib_1.__importStar(require("path"));
|
|
11
|
-
exports.INTERNAL_SCOPE = '@nf-internal';
|
|
12
|
-
function rewriteChunkImports(filePath) {
|
|
1
|
+
import * as ts from 'typescript';
|
|
2
|
+
import * as fs from 'fs';
|
|
3
|
+
import * as path from 'path';
|
|
4
|
+
import { toChunkImport } from '../domain/core/chunk.js';
|
|
5
|
+
export function rewriteChunkImports(filePath) {
|
|
13
6
|
const sourceCode = fs.readFileSync(filePath, 'utf-8');
|
|
14
7
|
const sourceFile = ts.createSourceFile(path.basename(filePath), sourceCode, ts.ScriptTarget.ESNext, true, ts.ScriptKind.JS);
|
|
15
8
|
const printer = ts.createPrinter();
|
|
@@ -20,7 +13,7 @@ function rewriteChunkImports(filePath) {
|
|
|
20
13
|
if (moduleSpecifier && ts.isStringLiteral(moduleSpecifier)) {
|
|
21
14
|
const text = moduleSpecifier.text;
|
|
22
15
|
if (text.startsWith('./')) {
|
|
23
|
-
const newModuleSpecifier = ts.factory.createStringLiteral(
|
|
16
|
+
const newModuleSpecifier = ts.factory.createStringLiteral(toChunkImport(text));
|
|
24
17
|
if (ts.isImportDeclaration(node)) {
|
|
25
18
|
return ts.factory.updateImportDeclaration(node, node.modifiers, node.importClause, newModuleSpecifier, node.assertClause);
|
|
26
19
|
}
|
|
@@ -31,34 +24,25 @@ function rewriteChunkImports(filePath) {
|
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
26
|
// import('./...')
|
|
34
|
-
if (ts.isCallExpression(node) &&
|
|
35
|
-
node.expression.kind === ts.SyntaxKind.ImportKeyword) {
|
|
27
|
+
if (ts.isCallExpression(node) && node.expression.kind === ts.SyntaxKind.ImportKeyword) {
|
|
36
28
|
const [arg] = node.arguments;
|
|
37
29
|
if (arg && ts.isStringLiteral(arg)) {
|
|
38
30
|
const text = arg.text;
|
|
39
31
|
if (text.startsWith('./')) {
|
|
40
|
-
const newArg = ts.factory.createStringLiteral(
|
|
41
|
-
return ts.factory.updateCallExpression(node, node.expression, node.typeArguments, [
|
|
32
|
+
const newArg = ts.factory.createStringLiteral(toChunkImport(text));
|
|
33
|
+
return ts.factory.updateCallExpression(node, node.expression, node.typeArguments, [
|
|
34
|
+
newArg,
|
|
35
|
+
]);
|
|
42
36
|
}
|
|
43
37
|
}
|
|
44
38
|
}
|
|
45
39
|
return ts.visitEachChild(node, visit, undefined);
|
|
46
40
|
}
|
|
47
|
-
const transformed = ts.transform(sourceFile, [
|
|
48
|
-
(context) => (node) => ts.visitNode(node, visit),
|
|
49
|
-
]);
|
|
41
|
+
const transformed = ts.transform(sourceFile, [_ => node => ts.visitNode(node, visit)]);
|
|
50
42
|
const updatedSourceFile = transformed.transformed[0];
|
|
51
43
|
const result = printer.printFile(updatedSourceFile);
|
|
52
44
|
fs.writeFileSync(filePath, result, 'utf-8');
|
|
53
45
|
}
|
|
54
|
-
function isSourceFile(fileName) {
|
|
46
|
+
export function isSourceFile(fileName) {
|
|
55
47
|
return !!fileName.match(/.(m|c)?js$/);
|
|
56
48
|
}
|
|
57
|
-
function deriveInternalName(fileName) {
|
|
58
|
-
if (fileName.startsWith('./')) {
|
|
59
|
-
fileName = fileName.slice(2);
|
|
60
|
-
}
|
|
61
|
-
const packageName = fileName.replace(/.(m|c)?js$/, '');
|
|
62
|
-
return exports.INTERNAL_SCOPE + '/' + packageName;
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=rewrite-chunk-imports.js.map
|
package/LICENSE
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Copyright 2021 Softarc Consulting GmbH
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
8
|
-
|