@tachui/devtools 0.8.26 → 0.8.28
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/dist/index.js +43 -35
- package/package.json +19 -19
- package/LICENSE +0 -363
package/dist/index.js
CHANGED
|
@@ -300,20 +300,6 @@ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
300
300
|
default: __viteBrowserExternal
|
|
301
301
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
302
302
|
const require$$6 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
|
|
303
|
-
/*! *****************************************************************************
|
|
304
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
305
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
306
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
307
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
308
|
-
|
|
309
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
310
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
311
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
312
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
313
|
-
|
|
314
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
315
|
-
and limitations under the License.
|
|
316
|
-
***************************************************************************** */
|
|
317
303
|
var hasRequiredTypescript;
|
|
318
304
|
function requireTypescript() {
|
|
319
305
|
if (hasRequiredTypescript) return typescript.exports;
|
|
@@ -2576,7 +2562,7 @@ function requireTypescript() {
|
|
|
2576
2562
|
});
|
|
2577
2563
|
module2.exports = __toCommonJS(typescript_exports);
|
|
2578
2564
|
var versionMajorMinor = "5.9";
|
|
2579
|
-
var version = "5.9.
|
|
2565
|
+
var version = "5.9.3";
|
|
2580
2566
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2581
2567
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2582
2568
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7228,10 +7214,10 @@ ${lanes.join("\n")}
|
|
|
7228
7214
|
] = "Latest";
|
|
7229
7215
|
return ScriptTarget12;
|
|
7230
7216
|
})(ScriptTarget || {});
|
|
7231
|
-
var LanguageVariant = /* @__PURE__ */ ((
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
return
|
|
7217
|
+
var LanguageVariant = /* @__PURE__ */ ((LanguageVariant4) => {
|
|
7218
|
+
LanguageVariant4[LanguageVariant4["Standard"] = 0] = "Standard";
|
|
7219
|
+
LanguageVariant4[LanguageVariant4["JSX"] = 1] = "JSX";
|
|
7220
|
+
return LanguageVariant4;
|
|
7235
7221
|
})(LanguageVariant || {});
|
|
7236
7222
|
var WatchDirectoryFlags = /* @__PURE__ */ ((WatchDirectoryFlags3) => {
|
|
7237
7223
|
WatchDirectoryFlags3[WatchDirectoryFlags3["None"] = 0] = "None";
|
|
@@ -25345,10 +25331,22 @@ ${lanes.join("\n")}
|
|
|
25345
25331
|
}
|
|
25346
25332
|
return parenthesizerRule;
|
|
25347
25333
|
}
|
|
25334
|
+
function mixingBinaryOperatorsRequiresParentheses(a, b) {
|
|
25335
|
+
if (a === 61) {
|
|
25336
|
+
return b === 56 || b === 57;
|
|
25337
|
+
}
|
|
25338
|
+
if (b === 61) {
|
|
25339
|
+
return a === 56 || a === 57;
|
|
25340
|
+
}
|
|
25341
|
+
return false;
|
|
25342
|
+
}
|
|
25348
25343
|
function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) {
|
|
25344
|
+
const emittedOperand = skipPartiallyEmittedExpressions(operand);
|
|
25345
|
+
if (isBinaryExpression(emittedOperand) && mixingBinaryOperatorsRequiresParentheses(binaryOperator, emittedOperand.operatorToken.kind)) {
|
|
25346
|
+
return true;
|
|
25347
|
+
}
|
|
25349
25348
|
const binaryOperatorPrecedence = getOperatorPrecedence(227, binaryOperator);
|
|
25350
25349
|
const binaryOperatorAssociativity = getOperatorAssociativity(227, binaryOperator);
|
|
25351
|
-
const emittedOperand = skipPartiallyEmittedExpressions(operand);
|
|
25352
25350
|
if (!isLeftSideOfBinary && operand.kind === 220 && binaryOperatorPrecedence > 3) {
|
|
25353
25351
|
return true;
|
|
25354
25352
|
}
|
|
@@ -62370,7 +62368,22 @@ ${lanes.join("\n")}
|
|
|
62370
62368
|
function getPropertyNameNodeForSymbol(symbol, context) {
|
|
62371
62369
|
const hashPrivateName = getClonedHashPrivateName(symbol);
|
|
62372
62370
|
if (hashPrivateName) {
|
|
62373
|
-
|
|
62371
|
+
const shouldEmitErroneousFieldName = !!context.tracker.reportPrivateInBaseOfClassExpression && context.flags & 2048;
|
|
62372
|
+
if (!shouldEmitErroneousFieldName) {
|
|
62373
|
+
return hashPrivateName;
|
|
62374
|
+
} else {
|
|
62375
|
+
let rawName2 = unescapeLeadingUnderscores(symbol.escapedName);
|
|
62376
|
+
rawName2 = rawName2.replace(/__#\d+@#/g, "__#private@#");
|
|
62377
|
+
return createPropertyNameNodeForIdentifierOrLiteral(
|
|
62378
|
+
rawName2,
|
|
62379
|
+
getEmitScriptTarget(compilerOptions),
|
|
62380
|
+
/*singleQuote*/
|
|
62381
|
+
false,
|
|
62382
|
+
/*stringNamed*/
|
|
62383
|
+
true,
|
|
62384
|
+
!!(symbol.flags & 8192)
|
|
62385
|
+
);
|
|
62386
|
+
}
|
|
62374
62387
|
}
|
|
62375
62388
|
const stringNamed = !!length(symbol.declarations) && every(symbol.declarations, isStringNamed);
|
|
62376
62389
|
const singleQuote = !!length(symbol.declarations) && every(symbol.declarations, isSingleQuotedStringNamed);
|
|
@@ -138377,10 +138390,9 @@ ${lanes.join("\n")}
|
|
|
138377
138390
|
}
|
|
138378
138391
|
const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));
|
|
138379
138392
|
commandLine.fileNames.forEach((fileName) => {
|
|
138380
|
-
if (isDeclarationFileName(fileName)) return;
|
|
138381
138393
|
const path2 = toPath3(fileName);
|
|
138382
138394
|
let outputDts;
|
|
138383
|
-
if (!fileExtensionIs(
|
|
138395
|
+
if (!isDeclarationFileName(fileName) && !fileExtensionIs(
|
|
138384
138396
|
fileName,
|
|
138385
138397
|
".json"
|
|
138386
138398
|
/* Json */
|
|
@@ -150033,7 +150045,7 @@ ${lanes.join("\n")}
|
|
|
150033
150045
|
if (token && token.kind === 20 && token.parent.kind === 295) {
|
|
150034
150046
|
return true;
|
|
150035
150047
|
}
|
|
150036
|
-
if (token.kind ===
|
|
150048
|
+
if (token.kind === 30 && token.parent.kind === 288) {
|
|
150037
150049
|
return true;
|
|
150038
150050
|
}
|
|
150039
150051
|
return false;
|
|
@@ -150061,7 +150073,7 @@ ${lanes.join("\n")}
|
|
|
150061
150073
|
function isInsideJsxElement(sourceFile, position) {
|
|
150062
150074
|
function isInsideJsxElementTraversal(node) {
|
|
150063
150075
|
while (node) {
|
|
150064
|
-
if (node.kind >= 286 && node.kind <= 295 || node.kind === 12 || node.kind === 30 || node.kind === 32 || node.kind === 80 || node.kind === 20 || node.kind === 19 || node.kind === 44
|
|
150076
|
+
if (node.kind >= 286 && node.kind <= 295 || node.kind === 12 || node.kind === 30 || node.kind === 32 || node.kind === 80 || node.kind === 20 || node.kind === 19 || node.kind === 44) {
|
|
150065
150077
|
node = node.parent;
|
|
150066
150078
|
} else if (node.kind === 285) {
|
|
150067
150079
|
if (position > node.getStart(sourceFile)) return true;
|
|
@@ -162107,9 +162119,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162107
162119
|
});
|
|
162108
162120
|
return children;
|
|
162109
162121
|
}
|
|
162110
|
-
const languageVariant = (sourceFile == null ? void 0 : sourceFile.languageVariant) ?? 0;
|
|
162111
162122
|
scanner.setText((sourceFile || node.getSourceFile()).text);
|
|
162112
|
-
scanner.setLanguageVariant(languageVariant);
|
|
162113
162123
|
let pos = node.pos;
|
|
162114
162124
|
const processNode = (child) => {
|
|
162115
162125
|
addSyntheticNodes(children, pos, child.pos, node);
|
|
@@ -162126,10 +162136,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162126
162136
|
node.forEachChild(processNode, processNodes);
|
|
162127
162137
|
addSyntheticNodes(children, pos, node.end, node);
|
|
162128
162138
|
scanner.setText(void 0);
|
|
162129
|
-
scanner.setLanguageVariant(
|
|
162130
|
-
0
|
|
162131
|
-
/* Standard */
|
|
162132
|
-
);
|
|
162133
162139
|
return children;
|
|
162134
162140
|
}
|
|
162135
162141
|
function addSyntheticNodes(nodes, pos, end, parent2) {
|
|
@@ -178233,7 +178239,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
178233
178239
|
switch (node.kind) {
|
|
178234
178240
|
case 288:
|
|
178235
178241
|
return true;
|
|
178236
|
-
case
|
|
178242
|
+
case 44:
|
|
178237
178243
|
case 32:
|
|
178238
178244
|
case 80:
|
|
178239
178245
|
case 212:
|
|
@@ -179632,7 +179638,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
179632
179638
|
location = currentToken;
|
|
179633
179639
|
}
|
|
179634
179640
|
break;
|
|
179635
|
-
case
|
|
179641
|
+
case 44:
|
|
179636
179642
|
if (currentToken.parent.kind === 286) {
|
|
179637
179643
|
location = currentToken;
|
|
179638
179644
|
}
|
|
@@ -179641,7 +179647,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
179641
179647
|
}
|
|
179642
179648
|
switch (parent2.kind) {
|
|
179643
179649
|
case 288:
|
|
179644
|
-
if (contextToken.kind ===
|
|
179650
|
+
if (contextToken.kind === 44) {
|
|
179645
179651
|
isStartingCloseTag = true;
|
|
179646
179652
|
location = contextToken;
|
|
179647
179653
|
}
|
|
@@ -181312,7 +181318,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
181312
181318
|
case "<":
|
|
181313
181319
|
return !!contextToken && contextToken.kind === 30 && (!isBinaryExpression(contextToken.parent) || binaryExpressionMayBeOpenTag(contextToken.parent));
|
|
181314
181320
|
case "/":
|
|
181315
|
-
return !!contextToken && (isStringLiteralLike(contextToken) ? !!tryGetImportFromModuleSpecifier(contextToken) : contextToken.kind ===
|
|
181321
|
+
return !!contextToken && (isStringLiteralLike(contextToken) ? !!tryGetImportFromModuleSpecifier(contextToken) : contextToken.kind === 44 && isJsxClosingElement(contextToken.parent));
|
|
181316
181322
|
case " ":
|
|
181317
181323
|
return !!contextToken && isImportKeyword(contextToken) && contextToken.parent.kind === 308;
|
|
181318
181324
|
default:
|
|
@@ -215568,6 +215574,7 @@ class TachUIValidationError extends Error {
|
|
|
215568
215574
|
this.context = context;
|
|
215569
215575
|
this.name = "TachUIValidationError";
|
|
215570
215576
|
}
|
|
215577
|
+
context;
|
|
215571
215578
|
getFormattedMessage() {
|
|
215572
215579
|
return `${this.context.component}: ${this.message}`;
|
|
215573
215580
|
}
|
|
@@ -216552,6 +216559,7 @@ class PluginError extends Error {
|
|
|
216552
216559
|
this.code = code;
|
|
216553
216560
|
this.name = "PluginError";
|
|
216554
216561
|
}
|
|
216562
|
+
code;
|
|
216555
216563
|
}
|
|
216556
216564
|
class OptimizedPluginErrorHandler {
|
|
216557
216565
|
errorMetrics = /* @__PURE__ */ new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachui/devtools",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.28",
|
|
4
4
|
"description": "Development & debugging tools for tachUI framework",
|
|
5
5
|
"homepage": "https://tachui.dev/",
|
|
6
6
|
"type": "module",
|
|
@@ -40,11 +40,23 @@
|
|
|
40
40
|
"files": [
|
|
41
41
|
"dist"
|
|
42
42
|
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "vite build && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
45
|
+
"build:dev": "vite build --mode development && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
46
|
+
"build:prod": "vite build --mode production && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
47
|
+
"dev": "vite build --watch",
|
|
48
|
+
"clean": "rm -rf dist",
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"valid": "clear && vitest run && bun run type-check && bun run lint && bun run build",
|
|
51
|
+
"test:watch": "vitest",
|
|
52
|
+
"type-check": "tsc --noEmit",
|
|
53
|
+
"lint": "oxlint src"
|
|
54
|
+
},
|
|
43
55
|
"dependencies": {
|
|
44
|
-
"
|
|
45
|
-
"@tachui/
|
|
46
|
-
"@tachui/registry": "
|
|
47
|
-
"
|
|
56
|
+
"@tachui/core": "workspace:*",
|
|
57
|
+
"@tachui/primitives": "workspace:*",
|
|
58
|
+
"@tachui/registry": "workspace:*",
|
|
59
|
+
"magic-string": "^0.30.0"
|
|
48
60
|
},
|
|
49
61
|
"devDependencies": {
|
|
50
62
|
"@types/node": "^20.0.0",
|
|
@@ -75,17 +87,5 @@
|
|
|
75
87
|
"engines": {
|
|
76
88
|
"node": ">=20.0.0"
|
|
77
89
|
},
|
|
78
|
-
"sideEffects": false
|
|
79
|
-
|
|
80
|
-
"build": "vite build && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
81
|
-
"build:dev": "vite build --mode development && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
82
|
-
"build:prod": "vite build --mode production && tsc --project tsconfig.json --emitDeclarationOnly",
|
|
83
|
-
"dev": "vite build --watch",
|
|
84
|
-
"clean": "rm -rf dist",
|
|
85
|
-
"test": "vitest run",
|
|
86
|
-
"valid": "clear && vitest run && pnpm type-check && pnpm lint && pnpm build",
|
|
87
|
-
"test:watch": "vitest",
|
|
88
|
-
"type-check": "tsc --noEmit",
|
|
89
|
-
"lint": "oxlint src"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
90
|
+
"sideEffects": false
|
|
91
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
Mozilla Public License Version 2.0
|
|
2
|
-
==================================
|
|
3
|
-
|
|
4
|
-
1. Definitions
|
|
5
|
-
--------------
|
|
6
|
-
|
|
7
|
-
1.1. "Contributor"
|
|
8
|
-
means each individual or legal entity that creates, contributes to
|
|
9
|
-
the creation of, or owns Covered Software.
|
|
10
|
-
|
|
11
|
-
1.2. "Contributor Version"
|
|
12
|
-
means the combination of the Contributions of others (if any) used
|
|
13
|
-
by a Contributor and that particular Contributor's Contribution.
|
|
14
|
-
|
|
15
|
-
1.3. "Contribution"
|
|
16
|
-
means Covered Software of a particular Contributor.
|
|
17
|
-
|
|
18
|
-
1.4. "Covered Software"
|
|
19
|
-
means Source Code Form to which the initial Contributor has attached
|
|
20
|
-
the notice in Exhibit A, the Executable Form of such Source Code
|
|
21
|
-
Form, and Modifications of such Source Code Form, in each case
|
|
22
|
-
including portions thereof.
|
|
23
|
-
|
|
24
|
-
1.5. "Incompatible With Secondary Licenses"
|
|
25
|
-
means
|
|
26
|
-
|
|
27
|
-
(a) that the initial Contributor has attached the notice described
|
|
28
|
-
in Exhibit B to the Covered Software; or
|
|
29
|
-
|
|
30
|
-
(b) that the Covered Software was made available under the terms of
|
|
31
|
-
version 1.1 or earlier of the License, but not also under the
|
|
32
|
-
terms of a Secondary License.
|
|
33
|
-
|
|
34
|
-
1.6. "Executable Form"
|
|
35
|
-
means any form of the work other than Source Code Form.
|
|
36
|
-
|
|
37
|
-
1.7. "Larger Work"
|
|
38
|
-
means a work that combines Covered Software with other material, in
|
|
39
|
-
a separate file or files, that is not Covered Software.
|
|
40
|
-
|
|
41
|
-
1.8. "License"
|
|
42
|
-
means this document.
|
|
43
|
-
|
|
44
|
-
1.9. "Licensable"
|
|
45
|
-
means having the right to grant, to the maximum extent possible,
|
|
46
|
-
whether at the time of the initial grant or subsequently, any and
|
|
47
|
-
all of the rights conveyed by this License.
|
|
48
|
-
|
|
49
|
-
1.10. "Modifications"
|
|
50
|
-
means any of the following:
|
|
51
|
-
|
|
52
|
-
(a) any file in Source Code Form that results from an addition to,
|
|
53
|
-
deletion from, or modification of the contents of Covered
|
|
54
|
-
Software; or
|
|
55
|
-
|
|
56
|
-
(b) any new file in Source Code Form that contains any Covered
|
|
57
|
-
Software.
|
|
58
|
-
|
|
59
|
-
1.11. "Patent Claims" of a Contributor
|
|
60
|
-
means any patent claim(s), including without limitation, method,
|
|
61
|
-
process, and apparatus claims, in any patent Licensable by such
|
|
62
|
-
Contributor that would be infringed, but for the grant of the
|
|
63
|
-
License, by the making, using, selling, offering for sale, having
|
|
64
|
-
made, import, or transfer of either its Contributions or its
|
|
65
|
-
Contributor Version.
|
|
66
|
-
|
|
67
|
-
1.12. "Secondary License"
|
|
68
|
-
means either the GNU General Public License, Version 2.0, the GNU
|
|
69
|
-
Lesser General Public License, Version 2.1, the GNU Affero General
|
|
70
|
-
Public License, Version 3.0, or any later versions of those
|
|
71
|
-
licenses.
|
|
72
|
-
|
|
73
|
-
1.13. "Source Code Form"
|
|
74
|
-
means the form of the work preferred for making modifications.
|
|
75
|
-
|
|
76
|
-
1.14. "You" (or "Your")
|
|
77
|
-
means an individual or legal entity exercising rights under this
|
|
78
|
-
License. For legal entities, "You" includes any entity that
|
|
79
|
-
controls, is controlled by, or is under common control with You. For
|
|
80
|
-
purposes of this definition, "control" means (a) the power, direct
|
|
81
|
-
or indirect, to cause the direction or management of such entity,
|
|
82
|
-
whether by contract or otherwise, or (b) ownership of more than
|
|
83
|
-
fifty percent (50%) of the outstanding shares or beneficial
|
|
84
|
-
ownership of such entity.
|
|
85
|
-
|
|
86
|
-
2. License Grants and Conditions
|
|
87
|
-
--------------------------------
|
|
88
|
-
|
|
89
|
-
2.1. Grants
|
|
90
|
-
|
|
91
|
-
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
92
|
-
non-exclusive license:
|
|
93
|
-
|
|
94
|
-
(a) under intellectual property rights (other than patent or trademark)
|
|
95
|
-
Licensable by such Contributor to use, reproduce, make available,
|
|
96
|
-
modify, display, perform, distribute, and otherwise exploit its
|
|
97
|
-
Contributions, either on an unmodified basis, with Modifications, or
|
|
98
|
-
as part of a Larger Work; and
|
|
99
|
-
|
|
100
|
-
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
|
101
|
-
for sale, have made, import, and otherwise transfer either its
|
|
102
|
-
Contributions or its Contributor Version.
|
|
103
|
-
|
|
104
|
-
2.2. Effective Date
|
|
105
|
-
|
|
106
|
-
The licenses granted in Section 2.1 with respect to any Contribution
|
|
107
|
-
become effective for each Contribution on the date the Contributor first
|
|
108
|
-
distributes such Contribution.
|
|
109
|
-
|
|
110
|
-
2.3. Limitations on Grant Scope
|
|
111
|
-
|
|
112
|
-
The licenses granted in this Section 2 are the only rights granted under
|
|
113
|
-
this License. No additional rights or licenses will be implied from the
|
|
114
|
-
distribution or licensing of Covered Software under this License.
|
|
115
|
-
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
|
116
|
-
Contributor:
|
|
117
|
-
|
|
118
|
-
(a) for any code that a Contributor has removed from Covered Software;
|
|
119
|
-
or
|
|
120
|
-
|
|
121
|
-
(b) for infringements caused by: (i) Your and any other third party's
|
|
122
|
-
modifications of Covered Software, or (ii) the combination of its
|
|
123
|
-
Contributions with other software (except as part of its Contributor
|
|
124
|
-
Version); or
|
|
125
|
-
|
|
126
|
-
(c) under Patent Claims infringed by Covered Software in the absence of
|
|
127
|
-
its Contributions.
|
|
128
|
-
|
|
129
|
-
This License does not grant any rights in the trademarks, service marks,
|
|
130
|
-
or logos of any Contributor (except as may be necessary to comply with
|
|
131
|
-
the notice requirements in Section 3.4).
|
|
132
|
-
|
|
133
|
-
2.4. Subsequent Licenses
|
|
134
|
-
|
|
135
|
-
No Contributor makes additional grants as a result of Your choice to
|
|
136
|
-
distribute the Covered Software under a subsequent version of this
|
|
137
|
-
License (see Section 10.2) or under the terms of a Secondary License (if
|
|
138
|
-
permitted under the terms of Section 3.3).
|
|
139
|
-
|
|
140
|
-
2.5. Representation
|
|
141
|
-
|
|
142
|
-
Each Contributor represents that the Contributor believes its
|
|
143
|
-
Contributions are its original creation(s) or it has sufficient rights
|
|
144
|
-
to grant the rights to its Contributions conveyed by this License.
|
|
145
|
-
|
|
146
|
-
2.6. Fair Use
|
|
147
|
-
|
|
148
|
-
This License is not intended to limit any rights You have under
|
|
149
|
-
applicable copyright doctrines of fair use, fair dealing, or other
|
|
150
|
-
equivalents.
|
|
151
|
-
|
|
152
|
-
2.7. Conditions
|
|
153
|
-
|
|
154
|
-
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
|
155
|
-
in Section 2.1.
|
|
156
|
-
|
|
157
|
-
3. Responsibilities
|
|
158
|
-
-------------------
|
|
159
|
-
|
|
160
|
-
3.1. Distribution of Source Form
|
|
161
|
-
|
|
162
|
-
All distribution of Covered Software in Source Code Form, including any
|
|
163
|
-
Modifications that You create or to which You contribute, must be under
|
|
164
|
-
the terms of this License. You must inform recipients that the Source
|
|
165
|
-
Code Form of the Covered Software is governed by the terms of this
|
|
166
|
-
License, and how they can obtain a copy of this License. You may not
|
|
167
|
-
attempt to alter or restrict the recipients' rights in the Source Code
|
|
168
|
-
Form.
|
|
169
|
-
|
|
170
|
-
3.2. Distribution of Executable Form
|
|
171
|
-
|
|
172
|
-
If You distribute Covered Software in Executable Form then:
|
|
173
|
-
|
|
174
|
-
(a) such Covered Software must also be made available in Source Code
|
|
175
|
-
Form, as described in Section 3.1, and You must inform recipients of
|
|
176
|
-
the Executable Form how they can obtain a copy of such Source Code
|
|
177
|
-
Form by reasonable means in a timely manner, at a charge no more
|
|
178
|
-
than the cost of distribution to the recipient; and
|
|
179
|
-
|
|
180
|
-
(b) You may distribute such Executable Form under the terms of this
|
|
181
|
-
License, or sublicense it under different terms, provided that the
|
|
182
|
-
license for the Executable Form does not attempt to limit or alter
|
|
183
|
-
the recipients' rights in the Source Code Form under this License.
|
|
184
|
-
|
|
185
|
-
3.3. Distribution of a Larger Work
|
|
186
|
-
|
|
187
|
-
You may create and distribute a Larger Work under terms of Your choice,
|
|
188
|
-
provided that You also comply with the requirements of this License for
|
|
189
|
-
the Covered Software. If the Larger Work is a combination of Covered
|
|
190
|
-
Software with a work governed by one or more Secondary Licenses, and the
|
|
191
|
-
Covered Software is not Incompatible With Secondary Licenses, this
|
|
192
|
-
License permits You to additionally distribute such Covered Software
|
|
193
|
-
under the terms of such Secondary License(s), so that the recipient of
|
|
194
|
-
the Larger Work may, at their option, further distribute the Covered
|
|
195
|
-
Software under the terms of either this License or such Secondary
|
|
196
|
-
License(s).
|
|
197
|
-
|
|
198
|
-
3.4. Notices
|
|
199
|
-
|
|
200
|
-
You may not remove or alter the substance of any license notices
|
|
201
|
-
(including copyright notices, patent notices, disclaimers of warranty,
|
|
202
|
-
or limitations of liability) contained within the Source Code Form of
|
|
203
|
-
the Covered Software, except that You may alter any license notices to
|
|
204
|
-
the extent required to remedy known factual inaccuracies.
|
|
205
|
-
|
|
206
|
-
3.5. Application of Additional Terms
|
|
207
|
-
|
|
208
|
-
You may choose to offer, and to charge a fee for, warranty, support,
|
|
209
|
-
indemnity or liability obligations to one or more recipients of Covered
|
|
210
|
-
Software. However, You may do so only on Your own behalf, and not on
|
|
211
|
-
behalf of any Contributor. You must make it absolutely clear that any
|
|
212
|
-
such warranty, support, indemnity, or liability obligation is offered by
|
|
213
|
-
You alone, and You hereby agree to indemnify every Contributor for any
|
|
214
|
-
liability incurred by such Contributor as a result of warranty, support,
|
|
215
|
-
indemnity or liability terms You offer. You may include additional
|
|
216
|
-
disclaimers of warranty and limitations of liability specific to any
|
|
217
|
-
jurisdiction.
|
|
218
|
-
|
|
219
|
-
4. Inability to Comply Due to Statute or Regulation
|
|
220
|
-
---------------------------------------------------
|
|
221
|
-
|
|
222
|
-
If it is impossible for You to comply with any of the terms of this
|
|
223
|
-
License with respect to some or all of the Covered Software due to
|
|
224
|
-
statute, judicial order, or regulation then You must: (a) comply with
|
|
225
|
-
the terms of this License to the maximum extent possible; and (b)
|
|
226
|
-
describe the limitations and the code they affect. Such description must
|
|
227
|
-
be placed in a text file included with all distributions of the Covered
|
|
228
|
-
Software under this License. Except to the extent prohibited by statute
|
|
229
|
-
or regulation, such description must be sufficiently detailed for a
|
|
230
|
-
recipient of ordinary skill to be able to understand it.
|
|
231
|
-
|
|
232
|
-
5. Termination
|
|
233
|
-
--------------
|
|
234
|
-
|
|
235
|
-
5.1. The rights granted under this License will terminate automatically
|
|
236
|
-
if You fail to comply with any of its terms. However, if You become
|
|
237
|
-
compliant, then the rights granted under this License from a particular
|
|
238
|
-
Contributor are reinstated (a) provisionally, unless and until such
|
|
239
|
-
Contributor explicitly and finally terminates Your grants, and (b) on an
|
|
240
|
-
ongoing basis, if such Contributor fails to notify You of the
|
|
241
|
-
non-compliance by some reasonable means prior to 60 days after You have
|
|
242
|
-
come back into compliance. Moreover, Your grants from a particular
|
|
243
|
-
Contributor are reinstated on an ongoing basis if such Contributor
|
|
244
|
-
notifies You of the non-compliance by some reasonable means, this is the
|
|
245
|
-
first time You have received notice of non-compliance with this License
|
|
246
|
-
from such Contributor, and You become compliant prior to 30 days after
|
|
247
|
-
Your receipt of the notice.
|
|
248
|
-
|
|
249
|
-
5.2. If You initiate litigation against any entity by asserting a patent
|
|
250
|
-
infringement claim (excluding declaratory judgment actions,
|
|
251
|
-
counter-claims, and cross-claims) alleging that a Contributor Version
|
|
252
|
-
directly or indirectly infringes any patent, then the rights granted to
|
|
253
|
-
You by any and all Contributors for the Covered Software under Section
|
|
254
|
-
2.1 of this License shall terminate.
|
|
255
|
-
|
|
256
|
-
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
|
257
|
-
end user license agreements (excluding distributors and resellers) which
|
|
258
|
-
have been validly granted by You or Your distributors under this License
|
|
259
|
-
prior to termination shall survive termination.
|
|
260
|
-
|
|
261
|
-
6. Disclaimer of Warranty
|
|
262
|
-
-------------------------
|
|
263
|
-
|
|
264
|
-
Covered Software is provided under this License on an "as is"
|
|
265
|
-
basis, without warranty of any kind, either expressed, implied, or
|
|
266
|
-
statutory, including, without limitation, warranties that the
|
|
267
|
-
Covered Software is free of defects, merchantable, fit for a
|
|
268
|
-
particular purpose or non-infringing. The entire risk as to the
|
|
269
|
-
quality and performance of the Covered Software is with You.
|
|
270
|
-
Should any Covered Software prove defective in any respect, You
|
|
271
|
-
(not any Contributor) assume the cost of any necessary servicing,
|
|
272
|
-
repair, or correction. This disclaimer of warranty constitutes an
|
|
273
|
-
essential part of this License. No use of any Covered Software is
|
|
274
|
-
authorized under this License except under this disclaimer.
|
|
275
|
-
|
|
276
|
-
7. Limitation of Liability
|
|
277
|
-
--------------------------
|
|
278
|
-
|
|
279
|
-
Under no circumstances and under no legal theory, whether tort
|
|
280
|
-
(including negligence), contract, or otherwise, shall any
|
|
281
|
-
Contributor, or anyone who distributes Covered Software as
|
|
282
|
-
permitted above, be liable to You for any direct, indirect,
|
|
283
|
-
special, incidental, or consequential damages of any character
|
|
284
|
-
including, without limitation, damages for lost profits, loss of
|
|
285
|
-
goodwill, work stoppage, computer failure or malfunction, or any
|
|
286
|
-
and all other commercial damages or losses, even if such party
|
|
287
|
-
shall have been informed of the possibility of such damages. This
|
|
288
|
-
limitation of liability shall not apply to liability for death or
|
|
289
|
-
personal injury resulting from such party's negligence to the
|
|
290
|
-
extent applicable law prohibits such limitation. Some
|
|
291
|
-
jurisdictions do not allow the exclusion or limitation of
|
|
292
|
-
incidental or consequential damages, so this exclusion and
|
|
293
|
-
limitation may not apply to You.
|
|
294
|
-
|
|
295
|
-
8. Litigation
|
|
296
|
-
-------------
|
|
297
|
-
|
|
298
|
-
Any litigation relating to this License may be brought only in the
|
|
299
|
-
courts of a jurisdiction where the defendant maintains its principal
|
|
300
|
-
place of business and such litigation shall be governed by laws of that
|
|
301
|
-
jurisdiction, without reference to its conflict-of-law provisions.
|
|
302
|
-
Nothing in this Section shall prevent a party's ability to bring
|
|
303
|
-
cross-claims or counter-claims.
|
|
304
|
-
|
|
305
|
-
9. Miscellaneous
|
|
306
|
-
----------------
|
|
307
|
-
|
|
308
|
-
This License represents the complete agreement concerning the subject
|
|
309
|
-
matter hereof. If any provision of this License is held to be
|
|
310
|
-
unenforceable, such provision shall be reformed only to the extent
|
|
311
|
-
necessary to make it enforceable. Any law or regulation which provides
|
|
312
|
-
that the language of a contract shall be construed against the drafter
|
|
313
|
-
shall not be used to construe this License against a Contributor.
|
|
314
|
-
|
|
315
|
-
10. Versions of the License
|
|
316
|
-
---------------------------
|
|
317
|
-
|
|
318
|
-
10.1. New Versions
|
|
319
|
-
|
|
320
|
-
Mozilla Foundation is the license steward. Except as provided in Section
|
|
321
|
-
10.3, no one other than the license steward has the right to modify or
|
|
322
|
-
publish new versions of this License. Each version will be given a
|
|
323
|
-
distinguishing version number.
|
|
324
|
-
|
|
325
|
-
10.2. Effect of New Versions
|
|
326
|
-
|
|
327
|
-
You may distribute the Covered Software under the terms of the version
|
|
328
|
-
of the License under which You originally received the Covered Software,
|
|
329
|
-
or under the terms of any subsequent version published by the license
|
|
330
|
-
steward.
|
|
331
|
-
|
|
332
|
-
10.3. Modified Versions
|
|
333
|
-
|
|
334
|
-
If you create software not governed by this License, and you want to
|
|
335
|
-
create a new license for such software, you may create and use a
|
|
336
|
-
modified version of this License if you rename the license and remove
|
|
337
|
-
any references to the name of the license steward (except to note that
|
|
338
|
-
such modified license differs from this License).
|
|
339
|
-
|
|
340
|
-
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
|
341
|
-
Licenses
|
|
342
|
-
|
|
343
|
-
If You choose to distribute Source Code Form that is Incompatible With
|
|
344
|
-
Secondary Licenses under the terms of this version of the License, the
|
|
345
|
-
notice described in Exhibit B of this License must be attached.
|
|
346
|
-
|
|
347
|
-
Exhibit A - Source Code Form License Notice
|
|
348
|
-
-------------------------------------------
|
|
349
|
-
|
|
350
|
-
This Source Code Form is subject to the terms of the Mozilla Public
|
|
351
|
-
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
352
|
-
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
353
|
-
|
|
354
|
-
If it is not possible or desirable to put the notice in a particular
|
|
355
|
-
file, then You may include it in a LICENSE file in a relevant
|
|
356
|
-
directory, or a legal notice stating where the relevant license can be
|
|
357
|
-
found.
|
|
358
|
-
|
|
359
|
-
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
|
360
|
-
---------------------------------------------------------
|
|
361
|
-
|
|
362
|
-
This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
363
|
-
defined by the Mozilla Public License, v. 2.0.
|