Questions tagged [epilogue]

Use this tag with code that does assembly level fix up of a stack frame.

Epilogue code is assembly code added to the exit of a function to fix up the stack frame.

14 questions
21
votes
1 answer

Using epilogue, is it possible to get back a resource without associations?

I have epilogue.resource({ model: db.Question, endpoints: ['/api/questions', '/api/questions/:id'], associations: true }); So when I hit /api/questions, I get back all the associations with the resources. Is there something I can pass to not…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
18
votes
5 answers

Function Prologue and Epilogue in C

I know data in nested function calls go to the Stack.The stack itself implements a step-by-step method for storing and retrieving data from the stack as the functions get called or returns.The name of these methods is most known as Prologue and…
user1843665
  • 353
  • 2
  • 3
  • 7
14
votes
1 answer

Using passport-jwt and epilogue, my req.user is empty

My middleware code is: exports.isAuthenticated = (req, res, context) => { return new Promise((resolve, reject) => { return passport.authenticate('jwt',{session: false}, (err, user, info) => { if(err) { …
Shamoon
  • 41,293
  • 91
  • 306
  • 570
7
votes
2 answers

Are the prologue and epilogue mandatory when writing assembly functions?

Recently I rewrote some libc functions in assembly and for some of them (the one that didn't need any call or syscall instructions, like strlen), I discarded the prologue and epilogue because my tests didn't failed without it (maybe they were not…
shorty_ponton
  • 454
  • 4
  • 14
3
votes
1 answer

exclude fields on post, put request in epilogue

I am using expressjs with sequalize ORM. My user model is some what like module.exports = function (sequelize, DataTypes) { var User = sequelize.define('user', { userName: { type: DataTypes.STRING }, isAdmin: { type:…
FastTurtle
  • 1,747
  • 11
  • 15
1
vote
0 answers

assembly epilogue composition

I'm learning assembly, and I tried compiling the following C code into assembly with GCC with optimization disabled (https://godbolt.org/z/4cz3ocfa5) void f() { int x = 1; int y = 2; int z = 3; } int main() { f(); return…
Guanwei HU
  • 55
  • 4
1
vote
0 answers

Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 1 Error with React, Babel and Webpack

I am building a CRUD web application using Webpack, Express, Epilogue, Sequelize, Sqlite3 and React. After setting up Webpack and Babel, I can add entries to the database but not retrieve entries. When I add an entry, if I look at…
1
vote
1 answer

With epilogue / finale-rest, how can I accept binary files via multer?

I'm doing: const audioResource = finale.resource({ model: db.models.Audio, endpoints: ['/audios', '/audios/:id'] }) audioResource.use(multer().single("file")) audioResource.use(resources.audio) Where resources.audio is: module.exports = { …
Shamoon
  • 41,293
  • 91
  • 306
  • 570
1
vote
1 answer

Epilogue endpoints are not being authenticated with passport

My code is below and the auth complete never gets triggered. I'm not sure why since this is direct from the epilogue docs. dataplan.list.auth((req, res, context) => { console.log('authenticating') // return new Promise(function(resolve, reject)…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
1
vote
1 answer

Create model and association in Sequelize and Epilogue

Desired behaviour Using Epilogue JS and Sequelize, I have two resources, Student and Course, that have a m2m relationship. I would like to create a new Student and associate that student instance with an existing course. The problem When I POST a…
mcranston18
  • 4,680
  • 3
  • 36
  • 37
1
vote
0 answers

How to post a mutli-tiered json object into epilogue using associated models in sequelize

I am trying to post a multitiered object to an epilogue generated REST sever with many associated models. The object: { "customer": { "name": "string", "phone": "string", "address1": "string", "address2": "string", "city":…
1
vote
1 answer

SyntaxError: Unexpected token return

Epilogue (npm module for Sequelize ORM rest endpoints) is only 5 months old hence the sparse documentation but I was wondering how to work with this sample middleware module that was on it's npm page https://www.npmjs.com/package/epilogue Console…
Natu Myers
  • 486
  • 2
  • 4
  • 21
0
votes
1 answer

Possible to DELETE or UPDATE on junction table w/ no primary key

I have a junction table called PlanConflicts, which allows for a many-to-many relationship between plans and conflicts. Here is my model definition: import { AllowNull, Column, DataType, ForeignKey, Model, Table } from "sequelize-typescript"; import…
devuxer
  • 41,681
  • 47
  • 180
  • 292
0
votes
0 answers

NodeJS/Express: ECONNRESET when doing multiples requests using Sequelize/Epilogue

I'm building a webapp using the following the architecture: a postgresql database (called DB), a NodeJS service (called DBService) using Sequelize to manipulate the DB and Epilogue to expose a REST interface via Express, a NodeJS service called…
Simon Urli
  • 449
  • 1
  • 5
  • 12