mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 14:25:17 +00:00
Changed build scripts for examples and main project
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
import app from "./webserver";
|
||||
import { createPass } from "..";
|
||||
import { createPass } from "passkit-generator";
|
||||
|
||||
app.all(async function manageRequest(request, response) {
|
||||
const passName = request.params.modelName + "_" + (new Date()).toISOString().split('T')[0].replace(/-/ig, "");
|
||||
@@ -45,6 +45,7 @@ app.all(async function manageRequest(request, response) {
|
||||
format: "PKBarcodeFormatPDF417"
|
||||
}, {
|
||||
message: "Thank you for using this package <3",
|
||||
// @ts-expect-error
|
||||
format: "PKBarcodeFormatMock44617"
|
||||
});
|
||||
}
|
||||
@@ -65,7 +66,7 @@ app.all(async function manageRequest(request, response) {
|
||||
});
|
||||
|
||||
stream.pipe(response);
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
|
||||
response.set({
|
||||
|
||||
Reference in New Issue
Block a user