11.60.27 • Published 2 months ago

@magaya/hyperion-express-middleware v11.60.27

Weekly downloads
208
License
MIT
Repository
github
Last release
2 months ago

Hyperion-Express-Middleware - Middleware Injection to Requests

Intro

Node package containing hyperion middleware for express.

const { hyperion, middleware } = require('@magaya/hyperion-express-middleware');
const app = require('express')();

// process.argv needs to include an entry '--connection-string'
// the second parameter is the unique identifier of the application connecting to the database
app.use(middleware(process.argv, 'extension-example'));

// Optionally you can use the hyperion object to create another connection: 
// const connection = hyperion(process.argv, 'extension-example');

// Elsewhere in your router...
router.route('/test').get((request, response) => {
    const dbx = request.dbx;                // hyperion namespaces
    const algorithm = request.algorithm;    // hyperion algorithms
    const api = request.api;                // api functions, defined if an API was requested
    const dbw = request.dbw;                // write access functions, save and edit

    response.send('Success!!');
});

Compatibility

In production, Magaya will handle all the dependencies to ensure the extensions (NodeJS apps) run accordingly, matching compatible versions of the Magaya Explorer, NodeJS, npm and the related Hyperion packages.

In development, you'll need to install the tools that are compatible with the version of Magaya you're using, check the table below:

MagayaNodeJS
v11.6.x16.5.0 32 bits 64 bits
v11.4.x12.14.1 32 bits 64 bits
v11.3.x12.14.1 32 bits 64 bits
v11.2.x8.11.1 32 bits 64 bits
v11.1.x8.11.1 32 bits 64 bits
v11.0.38.11.1 32 bits 64 bits

Notes

The second paramenter (api) will define which functions are available on the retreived hyperion instance.

Starting with version 11.2 of Magaya, the second parameter can be an object, containing the unique identifier of the application connecting to the database and it's API Key, assigned during installation, for writting purposes.

const { hyperion, middleware } = require('@magaya/hyperion-express-middleware');
const app = require('express')();

app.use(middleware(process.argv, {
    'clientId' : 'extension-example',
    'apiKey' : '123456'
}));
12.1.107-blue-tw.0

2 months ago

11.60.27

2 months ago

12.5.3-blue-main.0

3 months ago

12.5.4-blue-main.0

3 months ago

12.1.106-blue-tw.0

3 months ago

11.61.3

3 months ago

12.5.2-blue-main.0

3 months ago

11.61.2

3 months ago

12.1.104-blue-tw.0

3 months ago

12.52.1-blue.0

3 months ago

12.1.105-blue-tw.0

3 months ago

11.60.26

4 months ago

12.1.103-blue-tw.0

4 months ago

12.1.102-blue-tw.0

4 months ago

12.1.101-blue-tw.0

4 months ago

12.51.2-blue.0

4 months ago

12.51.1-blue.0

4 months ago

11.61.1

4 months ago

12.1.100-blue-tw.0

4 months ago

12.21.16-blue.0

6 months ago

12.1.86-blue-tw.0

5 months ago

12.1.85-blue-tw.0

5 months ago

11.60.22

7 months ago

11.60.23

6 months ago

11.60.24

6 months ago

11.60.25

5 months ago

12.4.1-blue-main.0

5 months ago

12.1.91-blue-tw.0

5 months ago

11.61.0

6 months ago

12.1.84-blue-tw.0

5 months ago

12.21.18-blue.0

5 months ago

12.1.88-blue-tw.0

5 months ago

12.1.79-blue-tw.0

7 months ago

12.1.78-blue-tw.0

7 months ago

12.1.93-blue-tw.0

5 months ago

12.1.80-blue-tw.0

7 months ago

12.1.96-blue-tw.0

4 months ago

12.1.83-blue-tw.0

5 months ago

12.1.92-blue-tw.0

5 months ago

12.1.87-blue-tw.0

5 months ago

12.1.99-blue-tw.0

4 months ago

12.4.2-blue-main.0

5 months ago

12.1.98-blue-tw.0

4 months ago

12.21.17-blue.0

5 months ago

12.1.77-blue-tw.0

7 months ago

12.1.97-blue-tw.0

4 months ago

12.5.1-blue-main.0

4 months ago

12.1.95-blue-tw.0

4 months ago

12.1.82-blue-tw.0

6 months ago

12.1.81-blue-tw.0

6 months ago

12.1.90-blue-tw.0

5 months ago

12.1.89-blue-tw.0

5 months ago

12.1.94-blue-tw.0

5 months ago

12.1.76-blue-tw.0

7 months ago

12.1.75-blue-tw.0

7 months ago

12.1.74-blue-tw.0

7 months ago

12.1.73-blue-tw.0

7 months ago

12.21.15-blue.0

8 months ago

11.60.21

8 months ago

12.1.72-blue-tw.0

8 months ago

11.60.20

8 months ago

12.1.71-blue-tw.0

8 months ago

12.21.14-blue.0

8 months ago

12.1.70-blue-tw.0

8 months ago

12.1.69-blue-tw.0

8 months ago

12.21.13-blue.0

8 months ago

12.30.9-blue-dev.0

8 months ago

12.30.8-blue-dev.0

8 months ago

12.1.68-blue-tw.0

8 months ago

12.21.12-blue.0

8 months ago

12.30.7-blue-dev.0

8 months ago

12.1.67-blue-tw.0

8 months ago

12.1.66-blue-tw.0

9 months ago

12.21.11-blue.0

9 months ago

12.21.10-blue.0

9 months ago

12.1.65-blue-tw.0

9 months ago

11.60.19

9 months ago

12.1.63-blue-tw.0

9 months ago

12.1.64-blue-tw.0

9 months ago

11.60.18

9 months ago

12.1.62-blue-tw.0

9 months ago

12.1.61-blue-tw.0

9 months ago

12.1.60-blue-tw.0

10 months ago

12.21.9-blue.0

9 months ago

12.30.6-blue-dev.0

9 months ago

12.1.59-blue-tw.0

10 months ago

12.1.58-blue-tw.0

10 months ago

12.26.8-blue-main.0

10 months ago

12.21.8-blue.0

10 months ago

12.1.57-blue-tw.0

10 months ago

12.21.7-blue.0

10 months ago

12.1.56-blue-tw.0

10 months ago

12.1.55-blue-tw.0

10 months ago

12.26.7-blue-main.0

10 months ago

12.1.54-blue-tw.0

10 months ago

12.26.6-blue-main.0

10 months ago

11.60.17

10 months ago

12.1.53-blue-tw.0

10 months ago

12.26.5-blue-main.0

10 months ago

12.26.4-blue-main.0

10 months ago

12.1.52-blue-tw.0

11 months ago

12.1.51-blue-tw.0

11 months ago

12.1.50-blue-tw.0

11 months ago

12.1.49-blue-tw.0

11 months ago

12.1.48-blue-tw.0

11 months ago

12.1.46-blue-tw.0

11 months ago

12.1.47-blue-tw.0

11 months ago

12.30.5-blue-dev.0

11 months ago

12.1.45-blue-tw.0

11 months ago

12.1.44-blue-tw.0

11 months ago

11.60.16

11 months ago

12.1.43-blue-tw.0

11 months ago

12.1.42-blue-tw.0

11 months ago

12.1.41-blue-tw.0

12 months ago

12.30.4-blue-dev.0

12 months ago

12.26.9-blue-beta.0

12 months ago

12.30.3-blue-dev.0

12 months ago

12.26.8-blue-beta.0

12 months ago

12.30.2-blue-dev.0

12 months ago

12.1.40-blue-tw.0

12 months ago

11.60.15

1 year ago

11.59.10

1 year ago

11.59.11

1 year ago

11.59.12

1 year ago

11.60.9

1 year ago

11.60.8

1 year ago

11.60.7

1 year ago

11.60.11

1 year ago

11.60.12

1 year ago

11.60.10

1 year ago

11.60.13

1 year ago

11.60.14

1 year ago

12.21.6-blue.0

1 year ago

11.59.5

1 year ago

11.59.6

1 year ago

11.59.7

1 year ago

11.59.8

1 year ago

11.59.9

1 year ago

11.60.6

1 year ago

11.59.4

1 year ago

12.21.5-blue.0

2 years ago

11.58.14

2 years ago

11.60.5

2 years ago

11.58.13

2 years ago

11.59.0

2 years ago

11.59.1

2 years ago

11.59.2

2 years ago

11.59.3

2 years ago

11.60.4

2 years ago

11.58.6

2 years ago

11.58.7

2 years ago

11.58.8

2 years ago

11.58.9

2 years ago

11.58.11

2 years ago

11.58.10

2 years ago

11.58.12

2 years ago

12.21.4-blue.0

2 years ago

11.60.3

2 years ago

11.60.2

2 years ago

11.58.4

2 years ago

11.58.5

2 years ago

11.60.1

2 years ago

11.60.0

2 years ago

11.58.2

2 years ago

11.58.3

2 years ago

11.56.19

2 years ago

11.57.2

2 years ago

11.57.3

2 years ago

11.57.4

2 years ago

11.57.5

2 years ago

11.57.6

2 years ago

12.21.2-blue.0

2 years ago

12.21.3-blue.0

2 years ago

11.56.14

2 years ago

11.56.15

2 years ago

11.56.18

2 years ago

11.56.16

2 years ago

11.56.17

2 years ago

12.21.1-blue.0

2 years ago

12.10.4-blue.0

2 years ago

11.56.12

2 years ago

11.56.13

2 years ago

11.56.10

2 years ago

11.56.11

2 years ago

12.10.3-blue.0

2 years ago

12.10.1-blue.0

3 years ago

12.2.1-blue.0

3 years ago

11.56.3

2 years ago

11.56.4

2 years ago

11.56.5

2 years ago

11.56.6

2 years ago

11.56.7

2 years ago

11.56.8

2 years ago

11.56.9

2 years ago

11.55.8

3 years ago

11.55.9

3 years ago

11.58.0

2 years ago

11.58.1

2 years ago

11.57.0

3 years ago

11.57.1

2 years ago

12.10.2-blue.0

2 years ago

12.2.2-blue.0

3 years ago

11.56.1

3 years ago

11.56.2

3 years ago

11.55.4

3 years ago

11.55.5

3 years ago

11.55.6

3 years ago

11.55.7

3 years ago

11.56.0

3 years ago

11.55.2

3 years ago

11.55.3

3 years ago

11.54.16

3 years ago

11.54.17

3 years ago

11.54.14

3 years ago

11.54.15

3 years ago

11.55.1

3 years ago

11.54.12

3 years ago

11.54.13

3 years ago

11.54.10

3 years ago

11.54.11

3 years ago

11.54.3

3 years ago

11.54.4

3 years ago

11.54.5

3 years ago

11.54.6

3 years ago

11.54.7

3 years ago

11.54.8

3 years ago

11.54.9

3 years ago

11.53.5

3 years ago

11.55.0

3 years ago

12.1.13-blue.0

3 years ago

12.1.10

3 years ago

12.1.11

3 years ago

12.0.35

3 years ago

12.0.36

3 years ago

12.1.6

3 years ago

12.1.7

3 years ago

12.1.8

3 years ago

12.1.9

3 years ago

12.1.2

3 years ago

12.1.3

3 years ago

12.1.4

3 years ago

12.1.5

3 years ago

12.1.1

3 years ago

11.54.1

3 years ago

11.54.2

3 years ago

11.54.0

3 years ago

11.53.2

3 years ago

11.53.3

3 years ago

11.53.4

3 years ago

11.53.1

3 years ago

12.0.34

3 years ago

12.0.31

3 years ago

12.0.30

3 years ago

12.0.33

3 years ago

12.0.32

3 years ago

11.52.9

3 years ago

12.0.28

3 years ago

12.0.27

3 years ago

12.0.29

3 years ago

12.0.24

3 years ago

12.0.26

3 years ago

12.0.25

3 years ago

11.52.6

3 years ago

11.52.7

3 years ago

11.52.8

3 years ago

12.0.23

3 years ago

11.51.11

3 years ago

11.51.12

3 years ago

11.51.13

3 years ago

12.0.20

3 years ago

12.0.22

3 years ago

12.0.21

3 years ago

12.0.17

3 years ago

12.0.19

3 years ago

12.0.18

3 years ago

11.53.0

3 years ago

12.0.14

3 years ago

12.0.13

3 years ago

11.52.4

3 years ago

11.52.5

3 years ago

11.51.10

3 years ago

12.0.12

3 years ago

12.0.11

3 years ago

11.50.44

3 years ago

11.51.9

3 years ago

11.52.3

3 years ago

12.0.8

3 years ago

11.52.2

3 years ago

11.50.43

3 years ago

11.50.42

3 years ago

12.0.7

3 years ago

11.50.41

3 years ago

11.52.1

3 years ago

12.0.6

3 years ago

12.0.4

3 years ago

12.0.5

3 years ago

11.51.8

3 years ago

12.0.3

3 years ago

11.50.40

3 years ago

11.51.7

3 years ago

11.50.39

3 years ago

12.0.2

3 years ago

11.50.38

3 years ago

11.50.37

3 years ago

11.50.36

3 years ago

11.52.0

3 years ago

11.51.6

3 years ago

12.0.1

4 years ago

11.51.5

4 years ago

11.50.35

4 years ago

11.50.33

4 years ago

11.50.32

4 years ago

11.50.31

4 years ago

11.50.30

4 years ago

11.51.4

4 years ago

11.50.29

4 years ago

11.50.28

4 years ago

11.41.13

4 years ago

11.50.27

4 years ago

11.41.12

4 years ago

11.50.26

4 years ago

11.50.25

4 years ago

11.50.24

4 years ago

11.50.23

4 years ago

11.41.11

4 years ago

11.50.22

4 years ago

11.50.21

4 years ago

11.50.20

4 years ago

11.51.3

4 years ago

11.41.10

4 years ago

11.50.19

4 years ago

11.41.9

4 years ago

11.50.18

4 years ago

11.50.17

4 years ago

11.50.16

4 years ago

11.50.15

4 years ago

11.50.14

4 years ago

11.41.8

4 years ago

11.41.7

4 years ago

11.50.13

4 years ago

11.41.6

4 years ago

11.50.12

4 years ago

11.50.11

4 years ago

11.50.10

4 years ago

11.50.9

4 years ago

11.41.5

4 years ago

11.50.8

4 years ago

11.50.7

4 years ago

11.50.6

4 years ago

11.41.4

4 years ago

11.41.3

4 years ago

11.50.5

4 years ago

11.41.2

4 years ago

11.40.8

4 years ago

11.50.4

4 years ago

11.41.1

4 years ago

11.40.7

4 years ago

11.40.6

4 years ago

11.50.3

4 years ago

11.41.0

4 years ago

11.40.5

4 years ago

11.50.2

4 years ago

11.40.4

4 years ago

11.40.3

4 years ago

11.50.1

4 years ago

11.30.9

4 years ago

11.50.0

4 years ago

11.40.2

4 years ago

11.30.8

4 years ago

11.30.7

4 years ago

11.30.6

4 years ago

11.30.5

4 years ago

11.30.4

4 years ago

11.24.3

4 years ago

11.30.3

4 years ago

11.40.1

4 years ago

11.40.0

4 years ago

11.30.2

4 years ago

11.24.2

5 years ago

11.23.12

5 years ago

11.30.1

5 years ago

11.23.11

5 years ago

11.23.10

5 years ago

11.24.1

5 years ago

11.30.0

5 years ago

11.23.9

5 years ago

11.24.0

5 years ago

11.23.8

5 years ago

11.23.7

5 years ago

11.22.4

5 years ago

11.23.6

5 years ago

11.23.5

5 years ago

11.23.4

5 years ago

11.23.3

5 years ago

11.23.2

5 years ago

11.23.1

5 years ago

11.23.0

5 years ago

11.22.0

5 years ago

11.22.3

5 years ago

11.21.8

5 years ago

11.21.7

5 years ago

11.21.6

5 years ago

11.21.5

5 years ago

11.21.4

5 years ago

11.21.3

5 years ago

11.21.2

5 years ago

11.21.1

5 years ago

11.20.11

5 years ago

11.22.1

5 years ago

11.21.0

5 years ago

11.20.10

5 years ago

11.20.9

5 years ago

11.20.8

5 years ago

11.20.7

5 years ago

11.20.6

5 years ago

11.20.5

5 years ago

11.20.4

5 years ago

11.20.3

5 years ago

11.10.39

5 years ago

11.10.38

5 years ago

11.10.37

5 years ago

11.10.36

5 years ago

11.10.35

5 years ago

11.10.34

5 years ago

11.10.33

5 years ago

11.10.32

5 years ago

11.20.2

5 years ago

11.10.31

5 years ago

11.20.1

5 years ago

11.10.30

5 years ago

11.10.29

5 years ago

11.10.28

5 years ago

11.10.27

5 years ago

11.10.26

5 years ago

11.10.25

5 years ago

11.10.24

5 years ago

11.10.23

5 years ago

11.10.22

5 years ago

11.10.21

5 years ago

11.10.20

5 years ago

11.20.0

5 years ago

11.10.19

5 years ago

11.10.18

6 years ago

11.10.17

6 years ago

11.10.16

6 years ago

11.10.15

6 years ago

11.10.14

6 years ago

11.10.13

6 years ago

11.10.12

6 years ago

11.10.11

6 years ago

11.10.10

6 years ago

11.10.9

6 years ago

11.10.8

6 years ago

11.10.7

6 years ago

11.10.6

6 years ago

11.10.5

6 years ago

11.10.4

6 years ago

11.10.3

6 years ago

11.3.38

6 years ago

11.3.37

6 years ago

11.3.36

6 years ago

11.3.35

6 years ago

11.3.34

6 years ago

11.3.33

6 years ago

11.3.32

6 years ago

11.3.31

6 years ago

11.10.2

6 years ago

11.10.1

6 years ago

11.3.30

6 years ago

11.3.29

6 years ago

11.3.28

6 years ago

11.3.27

6 years ago

11.3.26

6 years ago

11.3.25

6 years ago

11.3.24

6 years ago

11.3.23

6 years ago

11.3.22

6 years ago

11.3.21

6 years ago

11.3.20

6 years ago

11.3.19

6 years ago

11.3.18

6 years ago

11.3.17

6 years ago

11.3.16

6 years ago

11.3.15

6 years ago

11.3.14

6 years ago

11.3.13

6 years ago

11.3.12

6 years ago

11.3.11

6 years ago

11.3.10

6 years ago

11.3.9

6 years ago

11.3.8

6 years ago

11.3.7

6 years ago

11.3.6

6 years ago

11.3.5

6 years ago

11.3.4

6 years ago

11.3.3

6 years ago

11.3.2

6 years ago

11.3.1

6 years ago

11.3.0

6 years ago

11.2.3

6 years ago

11.2.2

6 years ago

11.2.1

6 years ago

11.2.0

6 years ago

11.1.0

6 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago