@yourrentals/cloudevent-receiver-hapi 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,8 +11,7 @@ yarn add @yourrentals/cloudevent-receiver-hapi
11
11
  ## Usage
12
12
 
13
13
  ```ts
14
- import { cloudEventReceiverPlugin, CloudEventReceiver } from '@yourrentals/message-bus-receiver-nestjs';
15
- import { RsaVerifier } from '@yourrentals/message-bus-signature-rsa';
14
+ import { cloudEventReceiverPlugin, CloudEventReceiver, CloudEventRsaVerifier } from '@yourrentals/message-bus-receiver-nestjs';
16
15
  import * as Hapi from '@hapi/hapi';
17
16
 
18
17
  const server = new Hapi.Server({
@@ -29,7 +28,7 @@ const receiver = new CloudEventReceiver({
29
28
  },
30
29
  },
31
30
  ],
32
- verifiers: [new RsaVerifier('signature', 'publicKey')],
31
+ verifiers: [new CloudEventRsaVerifier('signature', 'publicKey')],
33
32
  });
34
33
 
35
34
  server.register({
package/index.cjs.js CHANGED
@@ -398,12 +398,6 @@ var cloudEventReceiverPlugin = function cloudEventReceiverPlugin(pluginOptions)
398
398
  };
399
399
 
400
400
  exports.cloudEventReceiverPlugin = cloudEventReceiverPlugin;
401
- Object.keys(utilReceiverError).forEach(function (k) {
402
- if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
403
- enumerable: true,
404
- get: function () { return utilReceiverError[k]; }
405
- });
406
- });
407
401
  Object.keys(cloudeventReceiverCore).forEach(function (k) {
408
402
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
409
403
  enumerable: true,
package/index.esm.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { isReceiverError } from '@yourrentals/util-receiver-error';
2
- export * from '@yourrentals/util-receiver-error';
3
2
  export * from '@yourrentals/cloudevent-receiver-core';
4
3
 
5
4
  function _regeneratorRuntime() {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@yourrentals/cloudevent-receiver-hapi",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "dependencies": {
5
- "@yourrentals/cloudevent-receiver-core": "0.4.1",
6
- "@yourrentals/util-receiver-error": "0.4.1"
5
+ "@yourrentals/cloudevent-receiver-core": "0.4.3",
6
+ "@yourrentals/util-receiver-error": "0.4.3"
7
7
  },
8
8
  "peerDependencies": {
9
9
  "@hapi/hapi": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0"
package/src/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './lib/cloud-event-receiver-plugin';
2
2
  export * from '@yourrentals/cloudevent-receiver-core';
3
- export * from '@yourrentals/util-receiver-error';