{"_id":"@code-net/hal-api","_rev":"12-5a08cdc020eb4f51263950a56f4f85bc","name":"@code-net/hal-api","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@code-net/hal-api","version":"1.0.0","_id":"@code-net/hal-api@1.0.0","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"cb7441b68d60c0201fa8f7ea650c9b68751afcc2","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.0.0.tgz","fileCount":11,"integrity":"sha512-9a7lz0ipg6VipeJDJPhY5V/NPXNauNJGv5bFwWRt7doh+WG+tzJaw+mei6F7eqiQ6Heu1xnM8EzBpymw6mCsQw==","signatures":[{"sig":"MEQCIEpWIcAuHbnbUFd0GuayA5q5yE5DQaGg2UcvmzOH5jG7AiBcwhxs77fSmbbn74srXg8r2yyV5XDYFtf+PrsLfnLLoA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4039},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.0.0.tgz","types":"./src/index.d.ts","exports":{".":"./src/index.js","./nestjs":"./src/nestjs/index.js","./express":"./src/express.js"},"_npmUser":{"name":"pasi","actor":{"name":"pasi","type":"user","email":"bartosz.pasinski@gmail.com"},"email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/e0a4c469caa90d84b180f09f37e13583/code-net-hal-api-1.0.0.tgz","_integrity":"sha512-9a7lz0ipg6VipeJDJPhY5V/NPXNauNJGv5bFwWRt7doh+WG+tzJaw+mei6F7eqiQ6Heu1xnM8EzBpymw6mCsQw==","_npmVersion":"10.8.2","description":"This library was generated with [Nx](https://nx.dev).","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.0.0_1750679090623_0.5223987173522753","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@code-net/hal-api","version":"1.0.1","_id":"@code-net/hal-api@1.0.1","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"e4df655f134ac1524d28ac4b870ce8f7a9315336","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.0.1.tgz","fileCount":11,"integrity":"sha512-C3kUfI+YzhG2+3OiBfzK+eiSuMOITCDq0iOJYfm3jSX0BN0WQVs60BJbkwHdwOw3h4+K9fKZzNceHx4GUsbluQ==","signatures":[{"sig":"MEQCIEte6FSaBLmQTovj1H6tzuG6s5jyrlfxHM9vytZHMzfFAiAYK3scvQAKW/HTJeIJtaOvYeHcDwDrl1tH4G42ABgLJQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5705},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.0.1.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/11b0144f2ddad7fff111a2c34e4bfe1e/code-net-hal-api-1.0.1.tgz","_integrity":"sha512-C3kUfI+YzhG2+3OiBfzK+eiSuMOITCDq0iOJYfm3jSX0BN0WQVs60BJbkwHdwOw3h4+K9fKZzNceHx4GUsbluQ==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.0.1_1752503695634_0.16367674053320247","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@code-net/hal-api","version":"1.1.0","_id":"@code-net/hal-api@1.1.0","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"95ec1901779dba65ee2ed2890205c98db53bf5f0","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.1.0.tgz","fileCount":11,"integrity":"sha512-MZME9TWHbVjaIG/vqVjOXRPRU2OBhS4YmAFKI+JXSlkmMGgJK416A/2i+K7nU8AGpEw66vb006BRvVrrQnAOTQ==","signatures":[{"sig":"MEYCIQDhESei5gAYJBQX8eniNHoB4w8g/EaQM9KpRdfupTgyHAIhAOkm826/XnmJa5ZOE2Wpc/TvKammbwWyouyR8LUBoUWi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5877},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.1.0.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/cc83fc88b3f50b80601c462970a3d78e/code-net-hal-api-1.1.0.tgz","_integrity":"sha512-MZME9TWHbVjaIG/vqVjOXRPRU2OBhS4YmAFKI+JXSlkmMGgJK416A/2i+K7nU8AGpEw66vb006BRvVrrQnAOTQ==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.1.0_1752504721070_0.8535818241767701","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@code-net/hal-api","version":"1.1.1","_id":"@code-net/hal-api@1.1.1","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"02c7380911aaa9934637f7ac6f931321dbc35e5a","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.1.1.tgz","fileCount":11,"integrity":"sha512-LMze8FlZdtUjPKF+8aYyyn806lDKtRTctVVm495/h05leYcXNGvBrZD2COrT/9417K74T38lRXHvcIamD8jewg==","signatures":[{"sig":"MEYCIQDfpDl0XrkimGK0vEU0m/y8qcAGyCw6Cq/acufFr3IFMQIhAPitlftWWqtgpywhqnNfeTxVTCupv6vmKTjJLuXFyUT1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5972},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.1.1.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/23004277282efa1616a06d04803c228f/code-net-hal-api-1.1.1.tgz","_integrity":"sha512-LMze8FlZdtUjPKF+8aYyyn806lDKtRTctVVm495/h05leYcXNGvBrZD2COrT/9417K74T38lRXHvcIamD8jewg==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.1.1_1752505173133_0.49971779224863844","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@code-net/hal-api","version":"1.2.0","_id":"@code-net/hal-api@1.2.0","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"41b885854a7f08e41d8860764e988bf6f48edc6c","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.2.0.tgz","fileCount":17,"integrity":"sha512-sdpVc3CJLkSDfLxiJSlwZpO/JET5KgOYSkUrFvdSLr7uLPqeBUqTJ94QFkzEM0i6Z8ezKVIH3sh1ApFFUcWFIQ==","signatures":[{"sig":"MEYCIQCKSQc33XERocNjwPMsXCTtuZxggS1xNH28b26dNJFKdAIhAOfB9Ya1YPcKawPajV8Av5Qg4uP+CyR77gbHhuqJ7pe3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15756},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.2.0.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./nestjs":{"types":"./src/nestjs.d.ts","import":"./src/nestjs.js","require":"./src/nestjs.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/c6a305e83ef615a7fbf751af160cb597/code-net-hal-api-1.2.0.tgz","_integrity":"sha512-sdpVc3CJLkSDfLxiJSlwZpO/JET5KgOYSkUrFvdSLr7uLPqeBUqTJ94QFkzEM0i6Z8ezKVIH3sh1ApFFUcWFIQ==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"nestjs":["./src/nestjs.d.ts"],"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"@nestjs/common":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.2.0_1753264355920_0.48606494811846823","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@code-net/hal-api","version":"1.2.1","_id":"@code-net/hal-api@1.2.1","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"05b23af3f95ba0833c5b2e11f1392e5e94806b9c","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.2.1.tgz","fileCount":17,"integrity":"sha512-6Wf9bks6VmEfMchlzFon5yU3FOuabEjQi1NosTsXMP0XCPDn1M2a784OoRNMcpz1hUk/0gaC1X4ZtSXM6HVBcQ==","signatures":[{"sig":"MEQCIDAprgVyLFJgjRdqC7i+ndjDeymGDg5rCwTMbZIrUneKAiB/q9DApjFYvr2qnmdQBqfVBufa8ZFlf3udjSmLhvIgOA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17377},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.2.1.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./nestjs":{"types":"./src/nestjs.d.ts","import":"./src/nestjs.js","require":"./src/nestjs.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/d8e0347280c65f55209cf89c62c79dda/code-net-hal-api-1.2.1.tgz","_integrity":"sha512-6Wf9bks6VmEfMchlzFon5yU3FOuabEjQi1NosTsXMP0XCPDn1M2a784OoRNMcpz1hUk/0gaC1X4ZtSXM6HVBcQ==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"nestjs":["./src/nestjs.d.ts"],"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"@nestjs/common":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.2.1_1753266226518_0.46551061723576237","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@code-net/hal-api","version":"1.2.2","_id":"@code-net/hal-api@1.2.2","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"45c8487b9de842258fdf4f13ebbe507ea6d143f9","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.2.2.tgz","fileCount":17,"integrity":"sha512-avQzZoWmRDhjrpXhYRq1cAGH1C6emd1RTjs+IUCzxAO5Rp7Cjwm+EwXYarnjkyEVFOFd7jM6EJkzrt/Wv1my5A==","signatures":[{"sig":"MEQCIFEtsMlaT3AbRcieN34I4LVnmmsWf6bEo4ja2HW4HfdcAiBxWTfx4uemKKUe0oQ2MdHx7EpyP2WkYgojr0k2DCT6AQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17452},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.2.2.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./nestjs":{"types":"./src/nestjs.d.ts","import":"./src/nestjs.js","require":"./src/nestjs.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/4db306d316b0b59738958b03862f0c24/code-net-hal-api-1.2.2.tgz","_integrity":"sha512-avQzZoWmRDhjrpXhYRq1cAGH1C6emd1RTjs+IUCzxAO5Rp7Cjwm+EwXYarnjkyEVFOFd7jM6EJkzrt/Wv1my5A==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"nestjs":["./src/nestjs.d.ts"],"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"@nestjs/common":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.2.2_1753266376236_0.2147093926840331","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@code-net/hal-api","version":"1.2.3","_id":"@code-net/hal-api@1.2.3","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"59a1433502a411b308a936b7edf6713c7653b072","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.2.3.tgz","fileCount":17,"integrity":"sha512-y3taoqomfdb7jWgasrzkn4og1lWJTiLxR/0E4kvI4ACVUIRASpEa83GeIRmBXpu88Fe93VKXSj/EO2w9EM8huA==","signatures":[{"sig":"MEYCIQD+qQZm5zZzKQkiCPT6LQPrmrz+eeBLMxBha4/h3JigiwIhAII+svezbxqU/DghOZ0f6rJslczlEu34rZHbYnWE2Hjt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18999},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.2.3.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./nestjs":{"types":"./src/nestjs.d.ts","import":"./src/nestjs.js","require":"./src/nestjs.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/8be9bb817a15613256416d2f69d02a04/code-net-hal-api-1.2.3.tgz","_integrity":"sha512-y3taoqomfdb7jWgasrzkn4og1lWJTiLxR/0E4kvI4ACVUIRASpEa83GeIRmBXpu88Fe93VKXSj/EO2w9EM8huA==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"nestjs":["./src/nestjs.d.ts"],"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"@nestjs/common":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.2.3_1753269371237_0.1646419773531258","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"@code-net/hal-api","version":"1.2.4","_id":"@code-net/hal-api@1.2.4","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"b6aae9f4334568bfd84f480c95cb58c944608d32","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.2.4.tgz","fileCount":17,"integrity":"sha512-7Qut3VuXiVNqcBTh9RcYonANjSLn11Pf7QT+VnU5couXIU8iqVksnB7RedLru4+msnRMJ1tRWZ27qw682XMNaw==","signatures":[{"sig":"MEUCIHDXLkSMVjYt1eUUKbpgQYCdDdD1IVj3QfE8LC28eR77AiEAtl7V6V//kxJyxPOtEQBHUdqeQn3oWnwzPNBEHvF16yE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19263},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.2.4.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./nestjs":{"types":"./src/nestjs.d.ts","import":"./src/nestjs.js","require":"./src/nestjs.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/d7fb8619b2de135118c052199daedfa5/code-net-hal-api-1.2.4.tgz","_integrity":"sha512-7Qut3VuXiVNqcBTh9RcYonANjSLn11Pf7QT+VnU5couXIU8iqVksnB7RedLru4+msnRMJ1tRWZ27qw682XMNaw==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"nestjs":["./src/nestjs.d.ts"],"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"@nestjs/common":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.2.4_1753269772450_0.7539010870713998","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"@code-net/hal-api","version":"1.2.5","_id":"@code-net/hal-api@1.2.5","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"22c219b550e973572f68dcc8a35fd869e7d88fec","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.2.5.tgz","fileCount":17,"integrity":"sha512-ADTkMqDCawJjWF+RsP702IdZa2ILMvHb98GVsrkbMUElpTBU++NrU8iJQI/cGPiQgAbWyXn/+xxBOWRKW6kF5A==","signatures":[{"sig":"MEUCIQDQeKYCuLT+CluGY4RHssXT4z40a/DajSNLwO8m53/RxQIgL4XYVRV6Y8g/t6GxK++rIRT6lqMheFPi1eFlKSWL55M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19466},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.2.5.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./nestjs":{"types":"./src/nestjs.d.ts","import":"./src/nestjs.js","require":"./src/nestjs.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/8b49d3f75ea036567a672ddf8944823c/code-net-hal-api-1.2.5.tgz","_integrity":"sha512-ADTkMqDCawJjWF+RsP702IdZa2ILMvHb98GVsrkbMUElpTBU++NrU8iJQI/cGPiQgAbWyXn/+xxBOWRKW6kF5A==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"nestjs":["./src/nestjs.d.ts"],"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"@nestjs/common":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.2.5_1753272051162_0.3982427712039638","host":"s3://npm-registry-packages-npm-production"}},"1.2.6":{"name":"@code-net/hal-api","version":"1.2.6","_id":"@code-net/hal-api@1.2.6","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"dist":{"shasum":"2db28cf59ec2182abd77dc0caad06adfcd1bbfa9","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.2.6.tgz","fileCount":17,"integrity":"sha512-9ctQ59vJK2Isouzxf6QTZxo9subo1j5eZsz/bu2v2TGCxLlfMwJ8ZKwNMdL7xqauGUss+xleaUOU6K9GmlyptQ==","signatures":[{"sig":"MEUCIGBbqlpNbks9qxuIETBtuCCOiUi9PP/FNea1sUCRiF1PAiEAgroH/xXkYIvN6DS8zLtuVOZOHgp23F6ZqeggpUV4jG8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19499},"main":"./src/index.js","type":"commonjs","_from":"file:code-net-hal-api-1.2.6.tgz","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","require":"./src/index.js"},"./nestjs":{"types":"./src/nestjs.d.ts","import":"./src/nestjs.js","require":"./src/nestjs.js"},"./express":{"types":"./src/express.d.ts","import":"./src/express.js","require":"./src/express.js"}},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"_resolved":"/tmp/92c40be34fabd3e21111d5fd22150d3e/code-net-hal-api-1.2.6.tgz","_integrity":"sha512-9ctQ59vJK2Isouzxf6QTZxo9subo1j5eZsz/bu2v2TGCxLlfMwJ8ZKwNMdL7xqauGUss+xleaUOU6K9GmlyptQ==","_npmVersion":"10.8.2","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tslib":"^2.3.0"},"typesVersions":{"*":{"nestjs":["./src/nestjs.d.ts"],"express":["./src/express.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"supertest":"^7.1.1","@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"@nestjs/common":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/hal-api_1.2.6_1753272457423_0.18945814931190008","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@code-net/hal-api","version":"1.3.0","type":"commonjs","main":"./src/index.js","types":"./src/index.d.ts","typesVersions":{"*":{"express":["./src/express.d.ts"],"nestjs":["./src/nestjs.d.ts"],"fastify":["./src/fastify.d.ts"]}},"exports":{".":{"import":"./src/index.js","require":"./src/index.js","types":"./src/index.d.ts"},"./express":{"import":"./src/express.js","require":"./src/express.js","types":"./src/express.d.ts"},"./nestjs":{"import":"./src/nestjs.js","require":"./src/nestjs.js","types":"./src/nestjs.d.ts"},"./fastify":{"import":"./src/fastify.js","require":"./src/fastify.js","types":"./src/fastify.d.ts"}},"dependencies":{"tslib":"^2.3.0"},"peerDependencies":{"express":">=4.0.0","@nestjs/common":">=9.0.0","fastify":">=4.0.0"},"devDependencies":{"@types/express":"^5.0.3","@nestjs/testing":"9.4.3","@types/supertest":"^6.0.3","supertest":"^7.1.1","fastify":">=4.0.0","fastify-plugin":">=4.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"fastify":{"optional":true},"fastify-plugin":{"optional":true},"@nestjs/common":{"optional":true}},"_id":"@code-net/hal-api@1.3.0","description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","_integrity":"sha512-N64bS4eoTmU1QEiRlkB5mnUE/sQ6EGccOM7FzRED3DfPe5ubYPbtpP4eT4vyMMhCogfKjxPBO2k4X2fM7kMzHw==","_resolved":"/tmp/b58e3549187b1031079785d97f3d8657/code-net-hal-api-1.3.0.tgz","_from":"file:code-net-hal-api-1.3.0.tgz","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-N64bS4eoTmU1QEiRlkB5mnUE/sQ6EGccOM7FzRED3DfPe5ubYPbtpP4eT4vyMMhCogfKjxPBO2k4X2fM7kMzHw==","shasum":"e2623b4a7b2a7a77dd25a3d06cca97748a5f6b71","tarball":"https://registry.npmjs.org/@code-net/hal-api/-/hal-api-1.3.0.tgz","fileCount":21,"unpackedSize":24820,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCto1MQWIUOT+7TyRKaZdiRyd+mAmrDxl3FV03FDVm4mgIhAOVCyxD3KDOyRkDxjQTG4G0V6SfXAmNcHjbzgYZscmQG"}]},"_npmUser":{"name":"pasi","email":"bartosz.pasinski@gmail.com"},"directories":{},"maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hal-api_1.3.0_1765370051268_0.48392595001808325"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-23T11:44:50.553Z","modified":"2025-12-10T12:34:11.614Z","1.0.0":"2025-06-23T11:44:50.780Z","1.0.1":"2025-07-14T14:34:55.792Z","1.1.0":"2025-07-14T14:52:01.262Z","1.1.1":"2025-07-14T14:59:33.391Z","1.2.0":"2025-07-23T09:52:36.091Z","1.2.1":"2025-07-23T10:23:46.678Z","1.2.2":"2025-07-23T10:26:16.413Z","1.2.3":"2025-07-23T11:16:11.419Z","1.2.4":"2025-07-23T11:22:52.627Z","1.2.5":"2025-07-23T12:00:51.350Z","1.2.6":"2025-07-23T12:07:37.605Z","1.3.0":"2025-12-10T12:34:11.403Z"},"description":"This library makes it easier to create HAL (Hypertext Application Language) links in your API responses.","maintainers":[{"name":"pasi","email":"bartosz.pasinski@gmail.com"}],"readme":"# hal-api\n\nThis library makes it easier to create HAL (Hypertext Application Language) links in your API responses.\n\n## Installation\n\nInstall `@code-net/hal-api` to use the HAL link classes.\n\n```bash\nnpm install @code-net/hal-api\n```\n\n## Usage\n\n### Express\n\nUsage with express API.\n\n```typescript\nimport { resolveHref, resolveLink } from '@code-net/hal-api';\nimport { halLinks } from '@code-net/hal-api/express';\n\nconst app = express();\napp.use(halLinks({}));\n\napp.get('/api/resource', (req, res) => {\n  const resource = {\n    name: 'Example Resource',\n    _links: {\n      self: { href: resolveHref('/resource'), method: 'GET' },\n      related: resolveLink({ href: '/related-resource' }),\n    },\n  };\n  res.json(resource);\n});\n```\n\nMake a request to your API:\n\n```bash\ncurl http://localhost:3000/api/resource\n```\n\n```json\n{\n  \"name\": \"Example Resource\",\n  \"_links\": {\n    \"self\": {\n      \"href\": \"http://localhost:3000/api/resource\",\n      \"method\": \"GET\"\n    },\n    \"related\": {\n      \"href\": \"http://localhost:3000/api/related-resource\",\n      \"method\": \"GET\"\n    }\n  }\n}\n```\n\nIt can handle the `X-Forwarded-*` headers to build correct URLs, so you can use it behind a reverse proxy or load balancer.\n\n```bash\ncurl -H \"X-Forwarded-Proto: https\" \\\n     -H \"X-Forwarded-Host: example.com\" \\\n     -H \"X-Forwarded-Prefix: /api\" \\\n     http://localhost:3000/resource\n```\n\nResponse JSON:\n\n```json\n{\n  \"name\": \"Example Resource\",\n  \"_links\": {\n    \"self\": {\n      \"href\": \"https://example.com/api/resource\",\n      \"method\": \"GET\"\n    },\n    \"related\": {\n      \"href\": \"https://example.com/api/related-resource\",\n      \"method\": \"GET\"\n    }\n  }\n}\n```\n\n### Forcing base URL\n\nIf you are not able to setup your reverse proxy to send correct `X-Forwarded-*` headers, you can force the base URL like this:\n\n```typescript\napp.use(halLinks({\n  protocol: 'https',\n  host: 'example.com:3000',\n  prefix: '/api',\n}));\n```\n\n### Fastify\n\nUsage with Fastify API.\n\n```typescript\nimport Fastify from 'fastify';\nimport halLinks from '@code-net/hal-api/fastify';\n\nconst app = Fastify();\n\napp.register(halLinks, {\n  host: 'example.com', // optional\n  protocol: 'https', // optional\n  prefix: '/api', // optional\n});\n```\n\n### NestJS\n\nUsage with NestJS API.\n\n```typescript\nimport { Controller, Get, Post, Query } from '@nestjs/common';\nimport { routeLink } from '@code-net/hal-api/nestjs';\nimport { halLinks } from '@code-net/hal-api/express';\nimport { OtherController } from './other.controller';\n\n// ...\nconst app: INestApplication = await NestFactory.create(AppModule);\napp.use(halLinks());\n// ...\n\n@Controller('hals')\nclass HalController {\n  // The URL can contain slashes\n  @Get()\n  async get() {\n    return {\n      _links: {\n        post: routeLink(this, 'post', { params: { id: '123', foo: 'test', bar: ['A', 'B'] } }),\n        other: routeLink(OtherController, 'index'),\n      },\n    };\n  }\n\n  @Post(':id/post')\n  async post(@Query('foo') foo: string, @Query('bar') bar: string[]) {\n    // Logic here\n  }\n}\n```\n\n```bash\ncurl http://localhost:3000/hals\n```\n\n```json\n{\n  \"_links\": {\n    \"post\": {\n      \"href\": \"http://localhost:3000/hals/123/post?foo=test&bar[]=A&bar[]=B\",\n      \"method\": \"POST\"\n    },\n    \"other\": {\n      \"href\": \"http://localhost:3000/other\",\n      \"method\": \"GET\"\n    }\n  }\n}\n```\n","readmeFilename":"README.md"}