@madebyentropy/tnl 0.0.0-stage → 0.1.0
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/LICENSE +28 -0
- package/NOTICE +5 -0
- package/THIRD_PARTY_LICENSES.txt +3297 -0
- package/dist/adapters/ioredis.d.ts +7 -0
- package/dist/adapters/ioredis.js +87 -0
- package/dist/adapters/node-postgres.d.ts +8 -0
- package/dist/adapters/node-postgres.js +41 -0
- package/dist/adapters/postgres-js.d.ts +7 -0
- package/dist/adapters/postgres-js.js +55 -0
- package/dist/bin/tnl.d.ts +2 -0
- package/dist/bin/tnl.js +16 -0
- package/dist/browser.d.ts +18 -0
- package/dist/browser.js +43 -0
- package/dist/bun.d.ts +9 -0
- package/dist/bun.js +6 -0
- package/dist/cloudflare.d.ts +9 -0
- package/dist/cloudflare.js +16 -0
- package/dist/config.d.ts +107 -0
- package/dist/config.gen.d.ts +1185 -0
- package/dist/config.gen.js +2 -0
- package/dist/config.js +3 -0
- package/dist/control.d.ts +5 -0
- package/dist/control.js +9 -0
- package/dist/durable-object.d.ts +51 -0
- package/dist/durable-object.js +374 -0
- package/dist/durable-object.worker.d.ts +5 -0
- package/dist/durable-object.worker.js +11 -0
- package/dist/errors.d.ts +17 -0
- package/dist/errors.js +230 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +2 -0
- package/dist/internal/connector/cancellation.d.ts +7 -0
- package/dist/internal/connector/cancellation.js +30 -0
- package/dist/internal/connector/client.d.ts +62 -0
- package/dist/internal/connector/client.js +504 -0
- package/dist/internal/connector/client_factory.d.ts +6 -0
- package/dist/internal/connector/client_factory.js +123 -0
- package/dist/internal/connector/connection.d.ts +39 -0
- package/dist/internal/connector/connection.js +739 -0
- package/dist/internal/connector/connection_ipc.d.ts +12 -0
- package/dist/internal/connector/connection_ipc.js +198 -0
- package/dist/internal/connector/context.d.ts +28 -0
- package/dist/internal/connector/context.js +19 -0
- package/dist/internal/connector/contract.d.ts +392 -0
- package/dist/internal/connector/contract.js +56 -0
- package/dist/internal/connector/deployment_types.d.ts +27 -0
- package/dist/internal/connector/deployment_types.js +1 -0
- package/dist/internal/connector/driver_socket.d.ts +21 -0
- package/dist/internal/connector/driver_socket.js +129 -0
- package/dist/internal/connector/management.d.ts +29 -0
- package/dist/internal/connector/management.js +118 -0
- package/dist/internal/connector/native_operations.d.ts +16 -0
- package/dist/internal/connector/native_operations.js +30 -0
- package/dist/internal/connector/native_stream.d.ts +7 -0
- package/dist/internal/connector/native_stream.js +219 -0
- package/dist/internal/connector/operation_handles.d.ts +9 -0
- package/dist/internal/connector/operation_handles.js +18 -0
- package/dist/internal/connector/portable_operations.d.ts +13 -0
- package/dist/internal/connector/portable_operations.js +25 -0
- package/dist/internal/connector/snapshot.d.ts +183 -0
- package/dist/internal/connector/snapshot.js +47 -0
- package/dist/internal/connector/wasm_abi.d.ts +76 -0
- package/dist/internal/connector/wasm_abi.js +5 -0
- package/dist/internal/connector/wasm_client.d.ts +58 -0
- package/dist/internal/connector/wasm_client.js +545 -0
- package/dist/internal/connector/wasm_loader.d.ts +15 -0
- package/dist/internal/connector/wasm_loader.js +99 -0
- package/dist/internal/connector/wasm_stream.d.ts +4 -0
- package/dist/internal/connector/wasm_stream.js +177 -0
- package/dist/internal/connector/workload/contract.d.ts +54 -0
- package/dist/internal/connector/workload/contract.js +14 -0
- package/dist/internal/connector/workload/provider.d.ts +24 -0
- package/dist/internal/connector/workload/provider.js +130 -0
- package/dist/internal/enrollment_source.d.ts +4 -0
- package/dist/internal/enrollment_source.js +34 -0
- package/dist/internal/management/client/client.gen.d.ts +2 -0
- package/dist/internal/management/client/client.gen.js +216 -0
- package/dist/internal/management/client/index.d.ts +10 -0
- package/dist/internal/management/client/index.js +6 -0
- package/dist/internal/management/client/types.gen.d.ts +120 -0
- package/dist/internal/management/client/types.gen.js +2 -0
- package/dist/internal/management/client/utils.gen.d.ts +37 -0
- package/dist/internal/management/client/utils.gen.js +228 -0
- package/dist/internal/management/client.gen.d.ts +12 -0
- package/dist/internal/management/client.gen.js +3 -0
- package/dist/internal/management/core/auth.gen.d.ts +25 -0
- package/dist/internal/management/core/auth.gen.js +14 -0
- package/dist/internal/management/core/bodySerializer.gen.d.ts +25 -0
- package/dist/internal/management/core/bodySerializer.gen.js +57 -0
- package/dist/internal/management/core/params.gen.d.ts +43 -0
- package/dist/internal/management/core/params.gen.js +109 -0
- package/dist/internal/management/core/pathSerializer.gen.d.ts +33 -0
- package/dist/internal/management/core/pathSerializer.gen.js +106 -0
- package/dist/internal/management/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/internal/management/core/queryKeySerializer.gen.js +92 -0
- package/dist/internal/management/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/internal/management/core/serverSentEvents.gen.js +132 -0
- package/dist/internal/management/core/types.gen.d.ts +83 -0
- package/dist/internal/management/core/types.gen.js +2 -0
- package/dist/internal/management/core/utils.gen.d.ts +19 -0
- package/dist/internal/management/core/utils.gen.js +87 -0
- package/dist/internal/management/index.d.ts +2 -0
- package/dist/internal/management/index.js +2 -0
- package/dist/internal/management/sdk.gen.d.ts +73 -0
- package/dist/internal/management/sdk.gen.js +191 -0
- package/dist/internal/management/types.gen.d.ts +464 -0
- package/dist/internal/management/types.gen.js +2 -0
- package/dist/internal/management/zod.gen.d.ts +850 -0
- package/dist/internal/management/zod.gen.js +252 -0
- package/dist/internal/native/launcher.d.ts +8 -0
- package/dist/internal/native/launcher.js +75 -0
- package/dist/internal/native/native-targets.d.ts +9 -0
- package/dist/internal/native/native-targets.js +8 -0
- package/dist/internal/portable/cloudflare-publisher-client.d.ts +54 -0
- package/dist/internal/portable/cloudflare-publisher-client.js +91 -0
- package/dist/internal/portable/cloudflare-publisher.d.ts +19 -0
- package/dist/internal/portable/cloudflare-publisher.js +210 -0
- package/dist/internal/portable/durable-deployment.d.ts +10 -0
- package/dist/internal/portable/durable-deployment.js +22 -0
- package/dist/internal/portable/enrollment.d.ts +26 -0
- package/dist/internal/portable/enrollment.js +196 -0
- package/dist/internal/portable/publication.d.ts +54 -0
- package/dist/internal/portable/publication.js +304 -0
- package/dist/internal/portable/request.d.ts +1 -0
- package/dist/internal/portable/request.js +20 -0
- package/dist/internal/portable/storage-browser.d.ts +9 -0
- package/dist/internal/portable/storage-browser.js +115 -0
- package/dist/internal/portable/storage-durable-object.d.ts +11 -0
- package/dist/internal/portable/storage-durable-object.js +110 -0
- package/dist/internal/portable/storage-host.d.ts +8 -0
- package/dist/internal/portable/storage-host.js +142 -0
- package/dist/internal/portable/storage.d.ts +15 -0
- package/dist/internal/portable/storage.js +29 -0
- package/dist/internal/project/native_runtime.d.ts +24 -0
- package/dist/internal/project/native_runtime.js +23 -0
- package/dist/internal/project/runtime.d.ts +467 -0
- package/dist/internal/project/runtime.js +183 -0
- package/dist/internal/project/service_metadata.d.ts +3 -0
- package/dist/internal/project/service_metadata.js +12 -0
- package/dist/internal/publication_certificate.d.ts +28 -0
- package/dist/internal/publication_certificate.js +32 -0
- package/dist/internal/publication_run.d.ts +8 -0
- package/dist/internal/publication_run.js +19 -0
- package/dist/internal/publisher/app.d.ts +33 -0
- package/dist/internal/publisher/app.js +317 -0
- package/dist/internal/publisher/fetch.d.ts +6 -0
- package/dist/internal/publisher/fetch.js +135 -0
- package/dist/internal/publisher/fetch_types.d.ts +1 -0
- package/dist/internal/publisher/fetch_types.js +1 -0
- package/dist/internal/publisher/framework.d.ts +27 -0
- package/dist/internal/publisher/framework.js +82 -0
- package/dist/internal/publisher/local.d.ts +39 -0
- package/dist/internal/publisher/local.js +312 -0
- package/dist/internal/publisher/native_publisher.d.ts +25 -0
- package/dist/internal/publisher/native_publisher.js +228 -0
- package/dist/internal/publisher/port.d.ts +2 -0
- package/dist/internal/publisher/port.js +15 -0
- package/dist/internal/publisher/publication.d.ts +88 -0
- package/dist/internal/publisher/publication.js +627 -0
- package/dist/internal/publisher/register.d.ts +31 -0
- package/dist/internal/publisher/register.js +136 -0
- package/dist/internal/publisher/registration.d.ts +385 -0
- package/dist/internal/publisher/registration.js +223 -0
- package/dist/internal/publisher/status.d.ts +47 -0
- package/dist/internal/publisher/status.js +137 -0
- package/dist/internal/publisher/target.d.ts +6 -0
- package/dist/internal/publisher/target.js +44 -0
- package/dist/internal/runtime_resources.d.ts +38 -0
- package/dist/internal/runtime_resources.js +52 -0
- package/dist/internal/tracing.d.ts +10 -0
- package/dist/internal/tracing.js +78 -0
- package/dist/internal/validation.d.ts +3 -0
- package/dist/internal/validation.js +9 -0
- package/dist/internal/values.d.ts +27 -0
- package/dist/internal/values.js +54 -0
- package/dist/next.d.ts +12 -0
- package/dist/next.js +82 -0
- package/dist/node.d.ts +9 -0
- package/dist/node.js +6 -0
- package/dist/project.d.ts +173 -0
- package/dist/project.js +1 -0
- package/dist/response.d.ts +1 -0
- package/dist/response.js +34 -0
- package/dist/third-party-licenses.txt +1537 -0
- package/dist/vite.d.ts +5 -0
- package/dist/vite.js +200 -0
- package/dist/wasm/build.json +16 -0
- package/dist/wasm/connector.wasm +0 -0
- package/dist/wasm/go-license.txt +27 -0
- package/dist/wasm/publisher.wasm +0 -0
- package/dist/wasm/third-party-licenses.txt +3297 -0
- package/dist/wasm/wasm_exec.d.ts +1 -0
- package/dist/wasm/wasm_exec.js +575 -0
- package/dist/workload.d.ts +11 -0
- package/dist/workload.js +4 -0
- package/package.json +159 -4
- package/readme.md +13 -0
- package/README.md +0 -3
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Plugin } from "vite";
|
|
2
|
+
import { type FrameworkOptions } from "./internal/publisher/framework.js";
|
|
3
|
+
/** configures a Vite development server to register its listener and add project metadata. */
|
|
4
|
+
export type { FrameworkOptions } from "./internal/publisher/framework.js";
|
|
5
|
+
export default function tnl(options?: FrameworkOptions): Plugin;
|
package/dist/vite.js
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { serviceHostnames, serializeRuntimePayload } from "./internal/project/runtime.js";
|
|
2
|
+
import { canonicalLoopbackTarget } from "./internal/publisher/target.js";
|
|
3
|
+
import { NODATA, NOTFOUND } from "node:dns";
|
|
4
|
+
import { Resolver } from "node:dns/promises";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
import { resolve } from "node:path";
|
|
7
|
+
import { TnlError, TnlCleanupError, classifyTnlError } from "./errors.js";
|
|
8
|
+
import { closeFramework, frameworkOperation, frameworkOptions, localRuntimePayload, prepareFramework, } from "./internal/publisher/framework.js";
|
|
9
|
+
import { operation } from "./internal/tracing.js";
|
|
10
|
+
import * as z from "zod";
|
|
11
|
+
import { parseValue } from "./internal/validation.js";
|
|
12
|
+
const runtimeDefineName = "process.env.TNL_PROJECT_RUNTIME";
|
|
13
|
+
const dnsHintBudget = 200;
|
|
14
|
+
const allowedHostsSchema = z.union([z.literal(true), z.array(z.string())]).optional();
|
|
15
|
+
const sdkWasmFiles = new Set(["connector.wasm", "publisher.wasm"].map((name) => fileURLToPath(new URL(`./wasm/${name}`, import.meta.url))));
|
|
16
|
+
export default function tnl(options = {}) {
|
|
17
|
+
let assignment = null;
|
|
18
|
+
let preview = "auto";
|
|
19
|
+
let root;
|
|
20
|
+
return {
|
|
21
|
+
name: "tnl",
|
|
22
|
+
enforce: "post",
|
|
23
|
+
async config(userConfig = {}, configEnvironment) {
|
|
24
|
+
assignment = null;
|
|
25
|
+
if (configEnvironment.command !== "serve" || configEnvironment.isPreview === true) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
preview = frameworkOptions(options).preview;
|
|
29
|
+
if (preview === false)
|
|
30
|
+
return runtimeDefine(localRuntimePayload);
|
|
31
|
+
const server = userConfig.server ?? {};
|
|
32
|
+
const allowedHosts = parseValue(allowedHostsSchema, server.allowedHosts, "sdk.configuration_invalid");
|
|
33
|
+
assignment = await operation("vite.prepare", () => prepareFramework(options, "vite"));
|
|
34
|
+
if (assignment === null)
|
|
35
|
+
return runtimeDefine(localRuntimePayload);
|
|
36
|
+
const result = {
|
|
37
|
+
...runtimeDefine(serializeRuntimePayload(assignment, true)),
|
|
38
|
+
server: {
|
|
39
|
+
allowedHosts: serviceHostnames({
|
|
40
|
+
hostname: assignment.hostname,
|
|
41
|
+
project: assignment,
|
|
42
|
+
service: assignment.service,
|
|
43
|
+
}).reduce((hosts, hostname) => addAllowedHost(hosts, hostname), allowedHosts ?? []),
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
return result;
|
|
47
|
+
},
|
|
48
|
+
configResolved(config) {
|
|
49
|
+
root = config.root;
|
|
50
|
+
},
|
|
51
|
+
generateBundle: {
|
|
52
|
+
order: "post",
|
|
53
|
+
handler(_options, bundle) {
|
|
54
|
+
// vite can emit URL assets before tree shaking. keep only sdk wasm
|
|
55
|
+
// files referenced by the final chunks, including lazy chunks.
|
|
56
|
+
const referenced = new Set();
|
|
57
|
+
for (const chunk of Object.values(bundle)) {
|
|
58
|
+
if (chunk.type === "asset")
|
|
59
|
+
continue;
|
|
60
|
+
if (chunk.viteMetadata === undefined)
|
|
61
|
+
return;
|
|
62
|
+
for (const asset of chunk.viteMetadata.importedAssets)
|
|
63
|
+
referenced.add(asset);
|
|
64
|
+
}
|
|
65
|
+
for (const [file, asset] of Object.entries(bundle)) {
|
|
66
|
+
if (asset.type === "asset" &&
|
|
67
|
+
!referenced.has(file) &&
|
|
68
|
+
asset.originalFileNames.length > 0 &&
|
|
69
|
+
asset.originalFileNames.every((name) => sdkWasmFiles.has(resolve(root, name)))) {
|
|
70
|
+
delete bundle[file];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
configureServer(server) {
|
|
76
|
+
const configured = assignment;
|
|
77
|
+
if (configured === null) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (server.httpServer === null) {
|
|
81
|
+
throw new TnlError("sdk.target_invalid");
|
|
82
|
+
}
|
|
83
|
+
const listener = server.httpServer;
|
|
84
|
+
const { hostname, publicURL } = configured;
|
|
85
|
+
const urlLine = publicURL !== undefined && (server.config.logLevel ?? "info") === "info"
|
|
86
|
+
? ` ➜ tnl: ${publicURL}`
|
|
87
|
+
: undefined;
|
|
88
|
+
let announcement;
|
|
89
|
+
const originalPrintUrls = server.printUrls.bind(server);
|
|
90
|
+
server.printUrls = () => {
|
|
91
|
+
originalPrintUrls();
|
|
92
|
+
if (announcement === undefined || urlLine === undefined)
|
|
93
|
+
return;
|
|
94
|
+
const { startup } = announcement;
|
|
95
|
+
const printed = { startup: false };
|
|
96
|
+
announcement = printed;
|
|
97
|
+
if (!startup || hostname === undefined) {
|
|
98
|
+
server.config.logger.info(urlLine);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
void waitingForDns(hostname).then((waiting) => {
|
|
102
|
+
if (announcement === printed && listener.listening) {
|
|
103
|
+
server.config.logger.info(waiting ? `${urlLine} (waiting for DNS)` : urlLine);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
const originalListen = server.listen.bind(server);
|
|
108
|
+
server.listen = (port, isRestart) => operation(isRestart === true ? "vite.restart" : "vite.register", async () => {
|
|
109
|
+
announcement = undefined;
|
|
110
|
+
let registered = false;
|
|
111
|
+
let listening;
|
|
112
|
+
try {
|
|
113
|
+
listening = await originalListen(port, isRestart);
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
return await closeAfterFailure(server.close.bind(server), error);
|
|
117
|
+
}
|
|
118
|
+
try {
|
|
119
|
+
const address = server.httpServer?.address();
|
|
120
|
+
if (address === null || address === undefined || typeof address === "string") {
|
|
121
|
+
throw new TnlError("sdk.listener_failed");
|
|
122
|
+
}
|
|
123
|
+
canonicalLoopbackTarget(address.address, address.port);
|
|
124
|
+
await frameworkOperation(preview, async (signal) => {
|
|
125
|
+
try {
|
|
126
|
+
await configured.register(listener, signal);
|
|
127
|
+
registered = true;
|
|
128
|
+
}
|
|
129
|
+
catch (error) {
|
|
130
|
+
await closeFramework(configured, error);
|
|
131
|
+
throw error;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
catch (error) {
|
|
136
|
+
return await closeAfterFailure(server.close.bind(server), error);
|
|
137
|
+
}
|
|
138
|
+
if (registered && urlLine !== undefined) {
|
|
139
|
+
const pending = { startup: true };
|
|
140
|
+
announcement = pending;
|
|
141
|
+
// vite prints startup urls immediately after listen. if a restart doesn't
|
|
142
|
+
// print them, don't treat a later shortcut as startup.
|
|
143
|
+
setImmediate(() => {
|
|
144
|
+
pending.startup = false;
|
|
145
|
+
}).unref();
|
|
146
|
+
}
|
|
147
|
+
return listening;
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
async function waitingForDns(hostname) {
|
|
153
|
+
try {
|
|
154
|
+
const resolver = new Resolver({ tries: 1 });
|
|
155
|
+
let timer;
|
|
156
|
+
try {
|
|
157
|
+
const addresses = Promise.any(["A", "AAAA"].map(async (type) => resolver.resolve(hostname, type)));
|
|
158
|
+
return await Promise.race([
|
|
159
|
+
// a positive answer in either family is enough. only two definite
|
|
160
|
+
// negatives (NXDOMAIN or no data) justify the hint.
|
|
161
|
+
addresses.then(() => false, (error) => error instanceof AggregateError &&
|
|
162
|
+
error.errors.every((cause) => cause instanceof Error &&
|
|
163
|
+
"code" in cause &&
|
|
164
|
+
(cause.code === NOTFOUND || cause.code === NODATA))),
|
|
165
|
+
new Promise((resolve) => {
|
|
166
|
+
timer = setTimeout(resolve, dnsHintBudget, false).unref();
|
|
167
|
+
}),
|
|
168
|
+
]);
|
|
169
|
+
}
|
|
170
|
+
finally {
|
|
171
|
+
clearTimeout(timer);
|
|
172
|
+
resolver.cancel();
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
catch {
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
async function closeAfterFailure(close, error) {
|
|
180
|
+
try {
|
|
181
|
+
await operation("vite.cleanup", close);
|
|
182
|
+
}
|
|
183
|
+
catch (closeError) {
|
|
184
|
+
throw new TnlCleanupError(error, closeError);
|
|
185
|
+
}
|
|
186
|
+
throw classifyTnlError(error, "sdk.listener_failed");
|
|
187
|
+
}
|
|
188
|
+
function runtimeDefine(payload) {
|
|
189
|
+
return {
|
|
190
|
+
define: {
|
|
191
|
+
[runtimeDefineName]: JSON.stringify(payload),
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
function addAllowedHost(allowedHosts, hostname) {
|
|
196
|
+
if (allowedHosts === true) {
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
return [...new Set([...(allowedHosts ?? []), hostname])];
|
|
200
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"go": "go version go1.27.4 linux/amd64",
|
|
3
|
+
"optimizer": "wasm-opt version 133 (version_133)",
|
|
4
|
+
"modules": {
|
|
5
|
+
"connector.wasm": {
|
|
6
|
+
"wasmBytes": 18565678,
|
|
7
|
+
"gzipBytes": 4995941,
|
|
8
|
+
"sha256": "173f534711e31830feed86def0511e42796cd423f57c8061207ef9a952b82241"
|
|
9
|
+
},
|
|
10
|
+
"publisher.wasm": {
|
|
11
|
+
"wasmBytes": 23035171,
|
|
12
|
+
"gzipBytes": 6022931,
|
|
13
|
+
"sha256": "4752a046dfb88e0e6be709bd93337c19ce16989de4f4bbee38dfc5b909dc588e"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright 2009 The Go Authors.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
|
4
|
+
modification, are permitted provided that the following conditions are
|
|
5
|
+
met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright
|
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
|
9
|
+
* Redistributions in binary form must reproduce the above
|
|
10
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
11
|
+
in the documentation and/or other materials provided with the
|
|
12
|
+
distribution.
|
|
13
|
+
* Neither the name of Google LLC nor the names of its
|
|
14
|
+
contributors may be used to endorse or promote products derived from
|
|
15
|
+
this software without specific prior written permission.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
18
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
19
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
20
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
21
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
22
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
23
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
24
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
25
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Binary file
|