@storecraft/payments-stripe 1.0.0 → 1.0.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/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Stripe payment gateway for **StoreCraft**
2
2
 
3
+ <div style="text-align:center">
4
+ <img src='https://storecraft.app/storecraft-color.svg'
5
+ width='90%'' />
6
+ </div><hr/><br/>
7
+
3
8
  [Stripe](https://docs.stripe.com/payments/place-a-hold-on-a-payment-method) integration
4
9
 
5
10
 
package/adapter.html.js CHANGED
@@ -11,7 +11,7 @@
11
11
  * - Expiry date: 12/2027
12
12
  * - CVC code: 897
13
13
  *
14
- * @param {import("./types.public.js").Config} config
14
+ * @param {import("./types.public.d.ts").Config} config
15
15
  * @param {Partial<import("@storecraft/core/v-api").OrderData>} order_data
16
16
  */
17
17
  export default function html_buy_ui(config, order_data) {
package/adapter.js CHANGED
@@ -8,7 +8,7 @@ import { Stripe as StripeCls } from 'stripe'
8
8
  * @typedef {import('@storecraft/core/v-api').PaymentGatewayStatus} PaymentGatewayStatus
9
9
  * @typedef {import('@storecraft/core/v-api').CheckoutStatusEnum} CheckoutStatusOptions
10
10
  * @typedef {import('@storecraft/core/v-api').OrderData} OrderData
11
- * @typedef {import('./types.public.js').Config} Config
11
+ * @typedef {import('./types.public.d.ts').Config} Config
12
12
  * @typedef {import('@storecraft/core/v-payments').payment_gateway<Config, CheckoutCreateResult>} payment_gateway
13
13
  */
14
14
 
@@ -1,11 +1,7 @@
1
1
  {
2
- "compileOnSave": false,
3
2
  "compilerOptions": {
4
- "noEmit": true,
5
- "allowJs": true,
6
3
  "checkJs": true,
7
4
  "target": "ESNext",
8
- "resolveJsonModule": true,
9
5
  "moduleResolution": "NodeNext",
10
6
  "module": "NodeNext",
11
7
  "composite": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storecraft/payments-stripe",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Official Storecraft <-> Stripe integration",
5
5
  "license": "MIT",
6
6
  "author": "Tomer Shalev (https://github.com/store-craft)",
@@ -17,8 +17,8 @@
17
17
  "storecraft"
18
18
  ],
19
19
  "type": "module",
20
- "main": "index.js",
21
- "types": "./types.public.d.ts",
20
+ "main": "adapter.js",
21
+ "types": "types.public.d.ts",
22
22
  "scripts": {
23
23
  "payments-stripe:test": "uvu -c",
24
24
  "payments-stripe:publish": "npm publish --access public"
package/types.public.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './index.js';
2
- import type { Stripe } from 'stripe'
1
+ export { Stripe } from './adapter.js';
2
+ import type { Stripe as StripeCls } from 'stripe'
3
3
 
4
4
  /**
5
5
  * @description gateway config
@@ -26,12 +26,12 @@ export type Config = {
26
26
  /**
27
27
  * @description config options for `stripe`
28
28
  */
29
- stripe_config?: Stripe.StripeConfig;
29
+ stripe_config?: StripeCls.StripeConfig;
30
30
 
31
31
  /**
32
32
  * @description configure `intent` creation
33
33
  */
34
- stripe_intent_create_params?: Omit<Stripe.PaymentIntentCreateParams, 'amount'>;
34
+ stripe_intent_create_params?: Omit<StripeCls.PaymentIntentCreateParams, 'amount'>;
35
35
  }
36
36
 
37
37
 
package/index.js DELETED
@@ -1 +0,0 @@
1
- export * from './adapter.js'