{"_id":"@aopslabs/xf-core","_rev":"2-28bf4b9897b7f1b275f14624964b8a57","name":"@aopslabs/xf-core","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@aopslabs/xf-core","version":"0.2.0","license":"SEE LICENSE IN LICENSE","_id":"@aopslabs/xf-core@0.2.0","maintainers":[{"name":"mzsonmez","email":"mzsonmez2@hotmail.com"}],"dist":{"shasum":"e3a8787a12ca0b5519ad47aeae7733f96d8ef410","tarball":"https://registry.npmjs.org/@aopslabs/xf-core/-/xf-core-0.2.0.tgz","fileCount":34,"integrity":"sha512-V1BipDuKXlEW5nBU2T+mXKS/83n1ruJN6Lg9m5Gd/aHzQD3Q/4Pbzmk7pX4ZTj2njJPE35lfIocZw4gGMWhAog==","signatures":[{"sig":"MEUCIEj2ZKRheR5BKpuCRZZvlEW8X+uSy0ntrh33P6hS0lxyAiEA/JK/m9m3v5w+B7JvkUh9yI/vgrgbGaSNGyOXsKN4Vwo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44800},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./test":{"types":"./dist/test/index.d.ts","import":"./dist/test/index.js","default":"./dist/test/index.js"},"./package.json":"./package.json"},"private":false,"scripts":{"build":"tsc -p tsconfig.lib.json","build:src":"tsc -p tsconfig.lib.src.json","build:dist":"tsc -p tsconfig.lib.dist.json","build:debug":"tsc -p tsconfig.lib.json --sourceMap"},"_npmUser":{"name":"mzsonmez","email":"mzsonmez2@hotmail.com"},"repository":{"url":"https://github.com/eeemzs/xf-packages.git","type":"git"},"directories":{},"_nodeVersion":"22.18.0","dependencies":{"tslib":"^2.3.0","effect":"3.20.0","@aopslabs/xf-logger":"^0.2.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.3.0"},"_npmOperationalInternal":{"tmp":"tmp/xf-core_0.2.0_1785856777013_0.5791017768790763","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@aopslabs/xf-core","version":"0.2.1","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./test":{"types":"./dist/test/index.d.ts","import":"./dist/test/index.js","default":"./dist/test/index.js"}},"dependencies":{"effect":"3.20.0","tslib":"^2.3.0","@aopslabs/xf-logger":"^0.2.2"},"devDependencies":{"@types/node":"25.3.0","eslint":"9.39.5","typescript":"5.9.3","@aopslabs/eslint-config":"0.0.0","@aopslabs/typescript-config":"0.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"private":false,"repository":{"type":"git","url":"git+https://github.com/eeemzs/tsapps.git","directory":"packages/xf-packages/xf-core"},"license":"SEE LICENSE IN LICENSE","scripts":{"build":"tsc -p tsconfig.lib.json","build:debug":"tsc -p tsconfig.lib.json --sourceMap","build:src":"tsc -p tsconfig.lib.src.json","build:dist":"tsc -p tsconfig.lib.dist.json","lint":"eslint . --max-warnings=0"},"_id":"@aopslabs/xf-core@0.2.1","description":"Shared result types, retry and timeout helpers, typed errors, and data-sanitizing utilities for TypeScript services and libraries.","bugs":{"url":"https://github.com/eeemzs/tsapps/issues"},"homepage":"https://github.com/eeemzs/tsapps#readme","_integrity":"sha512-4qmg4BmxLsXtLutieKeUDSEpF4RJiAqHwojjVfjTgULJ+45ark/tzmVW1Dzp0sSqiav6NuJ3KfJLK/Xa5NBczw==","_resolved":"/home/runner/work/_temp/release-candidates/aopslabs-xf-core-0.2.1.tgz","_from":"file:/home/runner/work/_temp/release-candidates/aopslabs-xf-core-0.2.1.tgz","_nodeVersion":"24.20.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-4qmg4BmxLsXtLutieKeUDSEpF4RJiAqHwojjVfjTgULJ+45ark/tzmVW1Dzp0sSqiav6NuJ3KfJLK/Xa5NBczw==","shasum":"ad8445831b465daa0c5569760c9c16f8dae5c348","tarball":"https://registry.npmjs.org/@aopslabs/xf-core/-/xf-core-0.2.1.tgz","fileCount":34,"unpackedSize":44999,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBCv37b/eB/5spgSk3y+pKUri9v7pKRUot1a8tznddzBAiEA6l3XqUB5VeJkg/EmH8CmXx91iySMJ6l0vwQz2I7hQEU="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8d705323-3f64-4f24-ab20-cca032d64f2b"}},"directories":{},"maintainers":[{"name":"mzsonmez","email":"mzsonmez2@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/xf-core_0.2.1_1788791286903_0.4124262488253505"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-04T15:19:36.765Z","modified":"2026-09-07T14:28:07.233Z","0.2.0":"2026-08-04T15:19:37.183Z","0.2.1":"2026-09-07T14:28:07.049Z"},"license":"SEE LICENSE IN LICENSE","repository":{"type":"git","url":"git+https://github.com/eeemzs/tsapps.git","directory":"packages/xf-packages/xf-core"},"maintainers":[{"name":"mzsonmez","email":"mzsonmez2@hotmail.com"}],"readme":"# @aopslabs/xf-core\n\nShared result types, retry and timeout helpers, typed errors, and data-sanitizing utilities for TypeScript services and libraries.\n\n## Installation\n\n```bash\nnpm install @aopslabs/xf-core\n```\n\n## Usage\n\n```typescript\nimport {\n  executeWithRetry,\n  executeWithTimeout,\n  failure,\n  success\n} from '@aopslabs/xf-core';\n\nconst result = await executeWithRetry(\n  () => fetch('/health').then((response) => response.json()),\n  { maxRetries: 3, retryDelayMs: 250 }\n);\n\nconst value = await executeWithTimeout(Promise.resolve('ready'), 1_000);\nconst outcome = value === 'ready' ? success(value) : failure('not_ready');\n```\n\n## Main surfaces\n\n- Result helpers for success, failure, chaining, and error inspection\n- Retry helpers with fixed or exponential backoff\n- Promise timeouts with operation-aware errors\n- Typed error classes and Effect integration\n- URL and structured-data sanitizers\n- Date, identifier, and TypeScript utility types\n\nThe optional logger parameters use `@aopslabs/xf-logger`.\n\n## Entrypoints\n\n| Import | Purpose |\n| --- | --- |\n| `@aopslabs/xf-core` | Runtime helpers and public types |\n| `@aopslabs/xf-core/test` | Test-state helper types |\n\n## License\n\nCopyright (c) 2026 Mehmet Zeki Sönmez.\n\nLicensed under the [PolyForm Strict License 1.0.0](https://polyformproject.org/licenses/strict/1.0.0). The license permits noncommercial use and does not grant permission to modify or redistribute the package.\n","readmeFilename":"README.md","description":"Shared result types, retry and timeout helpers, typed errors, and data-sanitizing utilities for TypeScript services and libraries.","homepage":"https://github.com/eeemzs/tsapps#readme","bugs":{"url":"https://github.com/eeemzs/tsapps/issues"}}