mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Improving the get restream credentials
This commit is contained in:
parent
654dda115a
commit
56cb1fd5cb
6058 changed files with 1166166 additions and 1430809 deletions
30
node_modules/safe-json-parse/result.js
generated
vendored
30
node_modules/safe-json-parse/result.js
generated
vendored
|
@ -1,15 +1,15 @@
|
|||
var Result = require('rust-result');
|
||||
|
||||
module.exports = SafeParseTuple
|
||||
|
||||
function SafeParseTuple(obj, reviver) {
|
||||
var json
|
||||
|
||||
try {
|
||||
json = JSON.parse(obj, reviver);
|
||||
} catch (err) {
|
||||
return Result.Err(err);
|
||||
}
|
||||
|
||||
return Result.Ok(json);
|
||||
}
|
||||
var Result = require('rust-result');
|
||||
|
||||
module.exports = SafeParseTuple
|
||||
|
||||
function SafeParseTuple(obj, reviver) {
|
||||
var json
|
||||
|
||||
try {
|
||||
json = JSON.parse(obj, reviver);
|
||||
} catch (err) {
|
||||
return Result.Err(err);
|
||||
}
|
||||
|
||||
return Result.Ok(json);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue