@pinelab/vendure-plugin-webhook 1.1.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.1.1 (2023-12-14)
2
+
3
+ - Added missing export of `RequestTransformer`
4
+
1
5
  # 1.1.0 (2023-10-24)
2
6
 
3
7
  - Updated vendure to 2.1.1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Vendure Webhook plugin
2
2
 
3
- ![Vendure version](https://img.shields.io/badge/dynamic/json.svg?url=https%3A%2F%2Fraw.githubusercontent.com%2FPinelab-studio%2Fpinelab-vendure-plugins%2Fmain%2Fpackage.json&query=$.devDependencies[%27@vendure/core%27]&colorB=blue&label=Built%20on%20Vendure)
3
+ ### [Official documentation here](https://pinelab-plugins.com/plugin/vendure-plugin-webhook)
4
4
 
5
5
  Triggers an outgoing webhook based on configured events. Events are specified in `vendure-config` and webhooks are configured per
6
6
  channel via the admin UI.
@@ -18,11 +18,10 @@ platforms when orders are placed by subscribing to OrderPlacedEvents!
18
18
 
19
19
  ## Getting started
20
20
 
21
- 1. `yarn add vendure-plugin-webhook`
22
- 2. Add the `WebhookPlugin` to your plugins in your `vendure-config.ts`:
21
+ 1. Add the `WebhookPlugin` to your plugins in your `vendure-config.ts`:
23
22
 
24
23
  ```ts
25
- import { WebhookPlugin } from 'vendure-plugin-webhook';
24
+ import { WebhookPlugin } from '@pinelab/vendure-plugin-webhook';
26
25
 
27
26
  plugins: [
28
27
  WebhookPlugin.init({
@@ -62,7 +61,7 @@ Request transformers are used to create a custom POST body and custom headers fo
62
61
 
63
62
  ```ts
64
63
  import { Logger, ProductEvent } from '@vendure/core';
65
- import { RequestTransformer } from 'vendure-plugin-webhook';
64
+ import { RequestTransformer } from '@pinelab/vendure-plugin-webhook';
66
65
 
67
66
  export const stringifyProductTransformer = new RequestTransformer({
68
67
  name: 'Stringify Product events',
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './api/request-transformer';
1
2
  export * from './webhook.plugin';
package/dist/index.js CHANGED
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api/request-transformer"), exports);
17
18
  __exportStar(require("./webhook.plugin"), exports);
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@pinelab/vendure-plugin-webhook",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Call webhooks based on configured events from Vendure",
5
+ "icon": "hook",
5
6
  "author": "Martijn van de Brug <martijn@pinelab.studio>",
6
7
  "homepage": "https://pinelab-plugins.com/",
7
8
  "repository": "https://github.com/Pinelab-studio/pinelab-vendure-plugins",
@@ -22,5 +23,5 @@
22
23
  "start": "yarn ts-node test/dev-server.ts",
23
24
  "test": "vitest run"
24
25
  },
25
- "gitHead": "985a9e6ffd5cec67d1a3a4d924c9bd4bf7faa982"
26
+ "gitHead": "e69fea87dbeed4f491dbfc3b43c6c2ff29ad6ab6"
26
27
  }