-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from Luligu/dev
Release 1.3.10
- Loading branch information
Showing
30 changed files
with
21,204 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* @license | ||
* Copyright 2022-2024 Matter.js Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import { ValidationError } from '@project-chip/matter.js/common'; | ||
import { execSync } from 'child_process'; | ||
function getParameter(name) { | ||
const commandArguments = process.argv.slice(2); | ||
let markerIndex = commandArguments.indexOf(`-${name}`); | ||
if (markerIndex === -1) markerIndex = commandArguments.indexOf(`--${name}`); | ||
if (markerIndex === -1 || markerIndex + 1 === commandArguments.length) return void 0; | ||
return commandArguments[markerIndex + 1]; | ||
} | ||
function hasParameter(name) { | ||
const commandArguments = process.argv.slice(2); | ||
let markerIncluded = commandArguments.includes(`-${name}`); | ||
if (!markerIncluded) markerIncluded = commandArguments.includes(`--${name}`); | ||
return markerIncluded; | ||
} | ||
function getIntParameter(name) { | ||
const value = getParameter(name); | ||
if (value === void 0) return void 0; | ||
const intValue = parseInt(value, 10); | ||
if (isNaN(intValue)) throw new ValidationError(`Invalid value for parameter ${name}: ${value} is not a number`); | ||
return intValue; | ||
} | ||
function commandExecutor(scriptParamName) { | ||
const script = getParameter(scriptParamName); | ||
if (script === void 0) return void 0; | ||
// eslint-disable-next-line no-console | ||
return () => console.log(`${scriptParamName}: ${execSync(script).toString().slice(0, -1)}`); | ||
} | ||
function requireMinNodeVersion(minVersion) { | ||
const version = process.versions.node; | ||
const versionMajor = parseInt(version.split('.')[0]); | ||
if (versionMajor < minVersion) throw new MatterError(`Node version ${versionMajor} is not supported. Please upgrade to ${minVersion} or above.`); | ||
} | ||
export { commandExecutor, getIntParameter, getParameter, hasParameter, requireMinNodeVersion }; | ||
export * from '@project-chip/matter.js/util'; | ||
// # sourceMappingURL=CommandLine.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"files": { | ||
"main.css": "/static/css/main.abff2627.css", | ||
"main.js": "/static/js/main.942a74a2.js", | ||
"main.css": "/static/css/main.8e9f022b.css", | ||
"main.js": "/static/js/main.cf22e7af.js", | ||
"static/js/453.d855a71b.chunk.js": "/static/js/453.d855a71b.chunk.js", | ||
"index.html": "/index.html", | ||
"main.abff2627.css.map": "/static/css/main.abff2627.css.map", | ||
"main.942a74a2.js.map": "/static/js/main.942a74a2.js.map", | ||
"main.8e9f022b.css.map": "/static/css/main.8e9f022b.css.map", | ||
"main.cf22e7af.js.map": "/static/js/main.cf22e7af.js.map", | ||
"453.d855a71b.chunk.js.map": "/static/js/453.d855a71b.chunk.js.map" | ||
}, | ||
"entrypoints": [ | ||
"static/css/main.abff2627.css", | ||
"static/js/main.942a74a2.js" | ||
"static/css/main.8e9f022b.css", | ||
"static/js/main.cf22e7af.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.942a74a2.js"></script><link href="/static/css/main.abff2627.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="/manifest.json"/><script defer="defer" src="/static/js/main.cf22e7af.js"></script><link href="/static/css/main.8e9f022b.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.