Small changes
This commit is contained in:
1 parent
976d5a3fec
commit
bea7fb209b
6 files changed
+11
-5
No files matched your search
@@ -2,8 +2,6 @@
|
||||
"globals": [],
|
||||
"ignores": [
|
||||
"**/roku_modules/**/*",
|
||||
"components/lib/**/*",
|
||||
"source/lib/**/*",
|
||||
"**/bslib.brs"
|
||||
],
|
||||
"rules": {
|
||||
|
||||
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
||||
|
||||
info:
|
||||
title: Playlet Web API
|
||||
version: 1.0.0
|
||||
version: 0.10.3
|
||||
description:
|
||||
Playlet Web API is a RESTful API for controlling the Playlet app on
|
||||
Roku devices. The API is intended to be used by the Playlet web app, but can
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"postbuild:prod": "mkdir -p ../release && cp ../dist/playlet-app.zip ../release/playlet.zip",
|
||||
"lint": "bslint --project bsconfig.lint.json --lintConfig ../config/bslint.jsonc",
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
"format:base": "bsfmt \"src/**/*.brs\" \"src/**/*.bs\" \"!src/components/lib/**/*\" \"!src/source/lib/**/*\" \"!**/bslib.brs\" \"!**/roku_modules/**/*\" \"!**/*.transpiled/**\" \"!**/*.transpiled.*\" --bsfmt-path ../config/bsfmt.jsonc",
|
||||
"format:base": "bsfmt \"src/**/*.brs\" \"src/**/*.bs\" \"!**/bslib.brs\" \"!**/roku_modules/**/*\" \"!**/*.transpiled/**\" \"!**/*.transpiled.*\" --bsfmt-path ../config/bsfmt.jsonc",
|
||||
"format": "npm run format:base -- --check",
|
||||
"format:fix": "npm run format:base -- --write",
|
||||
"test": "npm run test:build && npm run test:run",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"postbuild:prod": "npm run postbuild && cp ../dist/playlet-lib.zip ../release/playlet-lib.zip",
|
||||
"lint": "bslint --project bsconfig.lint.json --lintConfig ../config/bslint.jsonc",
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
"format:base": "bsfmt \"src/**/*.brs\" \"src/**/*.bs\" \"!src/components/lib/**/*\" \"!src/source/lib/**/*\" \"!**/bslib.brs\" \"!**/roku_modules/**/*\" \"!**/*.transpiled/**\" \"!**/*.transpiled.*\" --bsfmt-path ../config/bsfmt.jsonc",
|
||||
"format:base": "bsfmt \"src/**/*.brs\" \"src/**/*.bs\" \"!**/bslib.brs\" \"!**/roku_modules/**/*\" \"!**/*.transpiled/**\" \"!**/*.transpiled.*\" --bsfmt-path ../config/bsfmt.jsonc",
|
||||
"format": "npm run format:base -- --check",
|
||||
"format:fix": "npm run format:base -- --write",
|
||||
"test": "npm run test:build && npm run test:run",
|
||||
|
||||
@@ -290,6 +290,7 @@ namespace Invidious
|
||||
return invalid
|
||||
end if
|
||||
authData = ParseJson(tokenPayload)
|
||||
' TODO:P0 delete token if we're missing scope
|
||||
if authData = invalid or authData.instance = invalid or authData.token = invalid
|
||||
RegistryUtils.Delete(RegistryUtils.INVIDIOUS_TOKEN)
|
||||
return invalid
|
||||
|
||||
@@ -30,3 +30,10 @@ const parsedVersion = semverParse(version);
|
||||
[".", "playlet-app", "playlet-lib", "playlet-web"].forEach(function (packageFolder) {
|
||||
execSync(`npm version ${version} --allow-same-version --no-git-tag-version`, { cwd: packageFolder });
|
||||
});
|
||||
|
||||
const webApi = "docs/playlet-web-api.yml"
|
||||
let webApiContent = fs.readFileSync(webApi, { encoding: 'utf8', flag: 'r' });
|
||||
// replace version in web api with regex
|
||||
const webApiVersionPattern = /version: (\d+\.\d+\.\d+)/;
|
||||
webApiContent = webApiContent.replace(webApiVersionPattern, `version: ${version}`);
|
||||
fs.writeFileSync(webApi, webApiContent);
|
||||
Reference in new issue
Block a user