1.6.4 • Published 7 years ago

user-package-npm v1.6.4

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

this module create user package

Install

npm i user-package-npm

in app.js add to :

in Listeners -> Http.js -> Http.onStart :

  • const Response = use('Adonis/Src/Response') Response.macro('sendResponse', function (status , data , token) { let response = {} response.status = "success"; response.data = []; response.data.push(data); if(token){ response.meta = {}; response.meta.accesToken = token; }

    this.status(status).send(response);

    });

in Listeners -> Http.js -> Http.handleError :

/** DEVELOPMENT REPORTER / if (Env.get('NODE_ENV') === 'development') { let responseError = {}; responseError.status = "error"; responseError.message = error.message; response.status(error.status).send(responseError); const ouch = new Ouch().pushHandler( new Ouch.handlers.PrettyPageHandler('blue', null, 'sublime') ) ouch.handleException(error, request.request, response.response, (output) => { console.error(error.stack) }) return }

1.6.4

7 years ago

1.6.3

7 years ago

1.6.2

7 years ago

1.6.1

8 years ago

1.5.9

8 years ago

1.5.8

8 years ago

1.5.7

8 years ago

1.5.6

8 years ago

1.5.4

8 years ago

1.5.3

8 years ago

1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.99

8 years ago

1.4.98

8 years ago

1.4.96

8 years ago

1.4.95

8 years ago

1.4.94

8 years ago

1.4.93

8 years ago

1.4.92

8 years ago

1.4.91

8 years ago

1.4.9

8 years ago

1.4.7

8 years ago

1.4.6

8 years ago

1.4.5

8 years ago

1.4.4

8 years ago

1.4.3

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.6

8 years ago

1.3.5

8 years ago

1.3.4

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.2

8 years ago

1.2.13

8 years ago

1.2.12

8 years ago

1.2.11

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.97

8 years ago

1.0.95

8 years ago

1.0.91

8 years ago

1.0.90

8 years ago

1.0.87

8 years ago

1.0.86

8 years ago

1.0.85

8 years ago

1.0.84

8 years ago

1.0.83

8 years ago

1.0.82

8 years ago

1.0.81

8 years ago

1.0.79

8 years ago

1.0.78

8 years ago

1.0.77

8 years ago

1.0.71

8 years ago

1.0.70

8 years ago

1.0.66

8 years ago

1.0.64

8 years ago

1.0.63

8 years ago

1.0.62

8 years ago

1.0.61

8 years ago

1.0.60

8 years ago

1.0.58

8 years ago

1.0.57

8 years ago

1.0.56

8 years ago

1.0.55

8 years ago

1.0.54

8 years ago

1.0.53

8 years ago

1.0.52

8 years ago

1.0.51

8 years ago

1.0.50

8 years ago

1.0.49

8 years ago

1.0.48

8 years ago

1.0.47

8 years ago

1.0.46

8 years ago

1.0.45

8 years ago

1.0.44

8 years ago

1.0.43

8 years ago

1.0.42

8 years ago

1.0.41

8 years ago

1.0.40

8 years ago

1.0.39

8 years ago

1.0.38

8 years ago

1.0.37

8 years ago

1.0.36

8 years ago

1.0.35

8 years ago

1.0.34

8 years ago

1.0.33

8 years ago

1.0.31

8 years ago

1.0.30

8 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago