@paystack/inline-js 2.22.8 → 2.22.9

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.