Used to only support HTML, CSS and JavaScript (with alias support), but now it will correctly move posted values for coffeescript, less, etc to the right processor.
Feels pretty hacky the way it's been done though, and highlights the issue with aliases (or rather inconsistent) naming on the live/output panel. I prefer output, but legacy code has 'live'.
Note already exists, but saying again: editor.js needs a refactor.
The error was:
a) being caused by strings being passed up through the error handler - instead of actual error objects.
b) more importantly, the 10 tries jsbin was attempting to get a new bin id, it was failing!!!! so I've increased the chances by adding uppercase characters (doubling the possibilties) and on each hit on an existing bin, the shortcode will get longer
node crashes and throws a error that 'results are not defined'.
This happens because of silly spelling mistake
in archiveBin in file lib/db/sqlite.js, see commit.
.
Sql query parameters as defined in lib/db/sql_template.json has github token and id at as last parameter. But, in lib/db/sqlite.json github_token is assigned where there should datetime value in last_login. Thus, resulting is error like "SQLITE CONSTRAINTS: ownership.last_login cannot be null" on console if github authentication is not used for login.
This commit attempts to fix that error and enable registering new users again.
Using format JSBIN_[KEY]_[KEY]=whatever
for example the following config setting:
{
"url": {
"host": "localhost:3300"
}
}
can be overriden with the following environment variable set
JSBIN_URL_HOST=my.url.com
Previously because an API key was only validated if allowAnonymous was true, an invalid API key could be provided and the request would have been accepted, and also if a valid API key was provided it was not used to authenticate the user.
The previous commit b537de0854 (L3R67) resulted in the API not being available to authenticated users. The statement if (allowAnonymous) around the route prevented the route being available. It is unnecessary to enforce this at a routing level as the middleware b537de0854/lib/middleware.js (L209) prevents API write requests without correct authentication.