diff --git a/config/bslint.jsonc b/config/bslint.jsonc index 7cc2b3e0..a8cf1bd5 100644 --- a/config/bslint.jsonc +++ b/config/bslint.jsonc @@ -2,8 +2,6 @@ "globals": [], "ignores": [ "**/roku_modules/**/*", - "components/lib/**/*", - "source/lib/**/*", "**/bslib.brs" ], "rules": { diff --git a/docs/playlet-web-api.yml b/docs/playlet-web-api.yml index 4a209047..c511e01a 100644 --- a/docs/playlet-web-api.yml +++ b/docs/playlet-web-api.yml @@ -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 diff --git a/playlet-app/package.json b/playlet-app/package.json index 9172f5cb..6e8d3d02 100644 --- a/playlet-app/package.json +++ b/playlet-app/package.json @@ -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", diff --git a/playlet-lib/package.json b/playlet-lib/package.json index 88dcf40d..8932130e 100644 --- a/playlet-lib/package.json +++ b/playlet-lib/package.json @@ -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", diff --git a/playlet-lib/src/components/Services/Invidious/InvidiousService.bs b/playlet-lib/src/components/Services/Invidious/InvidiousService.bs index 854da6c8..9fa5876f 100644 --- a/playlet-lib/src/components/Services/Invidious/InvidiousService.bs +++ b/playlet-lib/src/components/Services/Invidious/InvidiousService.bs @@ -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 diff --git a/tools/version-sync.js b/tools/version-sync.js index 78cb5f60..b811a1e2 100644 --- a/tools/version-sync.js +++ b/tools/version-sync.js @@ -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);