@paystack/inline-js 2.23.0-dev.1 → 2.23.0-dev.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
@@ -1,5 +1,41 @@
1
1
  Public Docs
2
2
  ===
3
+
4
+ # Development Setup
5
+
6
+ This project uses **pnpm** with security hardening for deterministic, reproducible installs.
7
+
8
+ ## First Time Setup
9
+ 1. Enable Corepack: `corepack enable` (may need `sudo` on Linux)
10
+ 2. Install dependencies: `pnpm install`
11
+ 3. Run tests: `pnpm test`
12
+ 4. Build: `pnpm run build:prod`
13
+
14
+ Corepack reads the `packageManager` field in `package.json` to provide the exact pnpm version.
15
+
16
+ ## For CI / Production Installs
17
+ Always use:
18
+ ```bash
19
+ pnpm install --frozen-lockfile
20
+ pnpm rebuild core-js fsevents husky nodent-runtime
21
+ ```
22
+
23
+ ## Security Settings
24
+ - **ignore-scripts=true**: Blocks arbitrary postinstall/preinstall scripts during install (primary supply chain attack vector)
25
+ - **strict-ssl=true**: Prevents man-in-the-middle attacks during package downloads
26
+ - **registry pinning**: Ensures all packages come from official npm registry
27
+ - **minimum-release-age=2880**: Delays installing newly published packages by 48 hours (time for community to detect compromised releases)
28
+
29
+ ## Native Dependencies
30
+ This project has packages that need to compile native code: `core-js, fsevents, husky, nodent-runtime`
31
+
32
+ These are explicitly rebuilt after install to ensure compatibility while maintaining security controls.
33
+
34
+ ## References
35
+ - [OWASP Top 10 CI/CD Security Risks](https://owasp.org/www-project-top-10-ci-cd-security-risks/)
36
+ - [pnpm Security Documentation](https://pnpm.io/npmrc#minimum-release-age)
37
+ - Project security hardening: See `.npmrc` for complete settings
38
+
3
39
  # Documentation for Paystack Inline
4
40
 
5
41
  Paystack Inline is a Javascript library that loads the Paystack Checkout form. This offers a simple, secure and convenient payment flow for web and mobile and can be integrated in a few lines of code. It makes it possible for you to start and end the payment flow on the same page, avoiding redirect fatigue.
@@ -416,6 +452,8 @@ async function loadApplePayButton() {
416
452
  loadApplePayButton()
417
453
  ```
418
454
 
455
+ Apple Pay button visibility is determined at runtime using Apple Pay capability checks. That allows supported non-Safari browsers to show the Apple Pay button when Apple’s QR handoff flow is available.
456
+
419
457
  ---
420
458
 
421
459
  # The PopupTransaction Object
@@ -458,4 +496,4 @@ Paystack Inline is designed to support all recent versions of major browsers. Th
458
496
 
459
497
  If you have an issue with Paystack Inline on a specific browser, kindly reach out to us so we can quickly resolve any issues.
460
498
 
461
- * We don't support Opera Mini because Javascript is disabled in it. We support the Opera browser however, except in super saver mode where JS is disabled as well.
499
+ * We don't support Opera Mini because Javascript is disabled in it. We support the Opera browser however, except in super saver mode where JS is disabled as well.