{"_id":"@bundly/ares-rest","_rev":"4-28e87fee35d064d42f5810c98b9ebf27","name":"@bundly/ares-rest","dist-tags":{"beta":"0.1.1-beta.0","latest":"0.1.1"},"versions":{"0.1.0-rc.0":{"name":"@bundly/ares-rest","version":"0.1.0-rc.0","description":"HTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.","author":{"name":"Bundly"},"license":"MIT","private":false,"homepage":"https://github.com/bundlydev/ares/tree/main/packages/ares#readme","repository":{"type":"git","url":"git+https://github.com/bundlydev/ares.git"},"bugs":{"url":"https://github.com/bundlydev/ares/issues"},"keywords":["dfinity","ICP","Internet Computer","Http","REST API","Typescript","Internet Identity"],"main":"./build/index.js","module":"./build/index.mjs","types":"./build/index.d.ts","scripts":{"build":"tsup","clean":"rm -rf build && rm -rf node_modules"},"dependencies":{"@dfinity/agent":"^1.0.1","@dfinity/principal":"^1.0.1","http-status-codes":"^2.3.0"},"devDependencies":{"@types/jest":"^29.5.11","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.2","tsup":"^8.0.1","typescript":"^5.3.3"},"_id":"@bundly/ares-rest@0.1.0-rc.0","gitHead":"78160dfb6b49195350b6717bdb4ead2a0fd5daec","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-EVtDqNCNk4fskoJqsWs3jsRrgicMZxCJ3/ImSjqpnvqt9eO1/NL8QfgGMBlCACBRa+72KuqZ5sExv6ABmh/pbA==","shasum":"c2fae8cc90f2db75995970f37412fbea4eea2e9f","tarball":"https://registry.npmjs.org/@bundly/ares-rest/-/ares-rest-0.1.0-rc.0.tgz","fileCount":9,"unpackedSize":81782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDnpCxBjM6wK3QugmZmgVMkm2I7l/1V/TOwo81oxWafAiAs3p8mAXznGvhhVYqCQEey7WeP9jhYjx+xzfmhtc/6kg=="}]},"_npmUser":{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},"directories":{},"maintainers":[{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},{"name":"alannnc","email":"alannnc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ares-rest_0.1.0-rc.0_1709234774713_0.13629650393519932"},"_hasShrinkwrap":false},"0.1.0-rc.1":{"name":"@bundly/ares-rest","version":"0.1.0-rc.1","description":"HTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.","author":{"name":"Bundly"},"license":"MIT","private":false,"homepage":"https://github.com/bundlydev/ares/tree/main/packages/ares#readme","repository":{"type":"git","url":"git+https://github.com/bundlydev/ares.git"},"bugs":{"url":"https://github.com/bundlydev/ares/issues"},"keywords":["dfinity","ICP","Internet Computer","Http","REST API","Typescript","Internet Identity"],"main":"./build/index.js","module":"./build/index.mjs","types":"./build/index.d.ts","scripts":{"build":"tsup","clean":"rm -rf build && rm -rf node_modules"},"dependencies":{"@dfinity/agent":"^1.0.1","@dfinity/principal":"^1.0.1","http-status-codes":"^2.3.0"},"devDependencies":{"@types/jest":"^29.5.11","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.2","tsup":"^8.0.1","typescript":"^5.3.3"},"_id":"@bundly/ares-rest@0.1.0-rc.1","readme":"# Ares\n\nHTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.\n\n**NOTE: This is a Beta version**\n\n## How to use\n\n### Basic usage\n\n```typescript\nconst response = await ares<TestResponse>({\n  url: `${process.env.NEXT_PUBLIC_API_REST_URL}/test`,\n  method: \"POST\",\n  data: {\n    message: \"Hello, World!\",\n  },\n  headers: {\n    \"Content-Type\": \"application/json\",\n  },\n});\n```\n\n### Direct access to a method\n\n```typescript\nconst response = await ares.post<TestResponse>(\n  `${process.env.NEXT_PUBLIC_API_REST_URL}/test`,\n  {\n    message: \"Hello, World!\",\n  },\n  {\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n  }\n);\n```\n\n### Create an instance\n\n```typescript\nconst instance = ares.create({\n  baseURL: `${process.env.NEXT_PUBLIC_API_REST_URL}`,\n});\n\nconst response = await instance.post<TestResponse>(\n  \"/test\",\n  {\n    message: \"Hello, World!\",\n  },\n  {\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n  }\n);\n```\n","readmeFilename":"README.md","gitHead":"78160dfb6b49195350b6717bdb4ead2a0fd5daec","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-QwGwwkpfRE7Dg7DMWHIOUq169prvrcbV8uwT8onP7DjSga0K+jZvmRFQjLqWFj3nCrgQglwTFODLSH6pytSoHA==","shasum":"d50b93d776c905d2b63e9d009229d6e0320a3d65","tarball":"https://registry.npmjs.org/@bundly/ares-rest/-/ares-rest-0.1.0-rc.1.tgz","fileCount":9,"unpackedSize":81644,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqAMERZFgILMijsiPlZdXyB/68H/0d9/bIFNMyVuUTowIgXZize27FPygI6S/Q16AXR2TX2LthPdDgrJ6/zvuL+R0="}]},"_npmUser":{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},"directories":{},"maintainers":[{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},{"name":"alannnc","email":"alannnc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ares-rest_0.1.0-rc.1_1709235105793_0.7382910106661371"},"_hasShrinkwrap":false},"0.1.0-rc.2":{"name":"@bundly/ares-rest","version":"0.1.0-rc.2","description":"HTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.","author":{"name":"Bundly"},"license":"MIT","private":false,"homepage":"https://github.com/bundlydev/ares/tree/main/packages/ares#readme","repository":{"type":"git","url":"git+https://github.com/bundlydev/ares.git"},"bugs":{"url":"https://github.com/bundlydev/ares/issues"},"keywords":["dfinity","ICP","Internet Computer","Http","REST API","Typescript","Internet Identity"],"main":"./build/index.js","module":"./build/index.mjs","types":"./build/index.d.ts","scripts":{"build":"tsup","clean":"rm -rf build && rm -rf node_modules"},"dependencies":{"@dfinity/agent":"^1.0.1","@dfinity/principal":"^1.0.1","http-status-codes":"^2.3.0"},"devDependencies":{"@types/jest":"^29.5.11","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.2","tsup":"^8.0.1","typescript":"^5.3.3"},"_id":"@bundly/ares-rest@0.1.0-rc.2","readme":"# Ares\n\nHTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.\n\n**NOTE: This is a Beta version**\n\n## How to use\n\n### Basic usage\n\n```typescript\nconst response = await ares<TestResponse>({\n  url: `${process.env.NEXT_PUBLIC_API_REST_URL}/test`,\n  method: \"POST\",\n  data: {\n    message: \"Hello, World!\",\n  },\n  headers: {\n    \"Content-Type\": \"application/json\",\n  },\n});\n```\n\n### Direct access to a method\n\n```typescript\nconst response = await ares.post<TestResponse>(\n  `${process.env.NEXT_PUBLIC_API_REST_URL}/test`,\n  {\n    message: \"Hello, World!\",\n  },\n  {\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n  }\n);\n```\n\n### Create an instance\n\n```typescript\nconst instance = ares.create({\n  baseURL: `${process.env.NEXT_PUBLIC_API_REST_URL}`,\n});\n\nconst response = await instance.post<TestResponse>(\n  \"/test\",\n  {\n    message: \"Hello, World!\",\n  },\n  {\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n  }\n);\n```\n","readmeFilename":"README.md","gitHead":"78160dfb6b49195350b6717bdb4ead2a0fd5daec","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-ZFDxhxoohxeR+ii7ezfii/1C23VV53dFLqveGr9vK8E/3ktMmOC2jYSk1DDYv5DmJJYnyUO2XnmBBFgiTYC9Xw==","shasum":"a74efb953993afd773a12a01dfaba6a19a3b271c","tarball":"https://registry.npmjs.org/@bundly/ares-rest/-/ares-rest-0.1.0-rc.2.tgz","fileCount":9,"unpackedSize":81768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICIuNJVLV7ZZ/0/3j3b1En3mEEg6MmgjcOx7urI3endWAiEAwpIWcWzDzK1sJkmjTj7cRDra+C9LxmP4b44/ttcDkbM="}]},"_npmUser":{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},"directories":{},"maintainers":[{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},{"name":"alannnc","email":"alannnc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ares-rest_0.1.0-rc.2_1709235487552_0.053876771483278185"},"_hasShrinkwrap":false},"0.1.1-beta.0":{"name":"@bundly/ares-rest","version":"0.1.1-beta.0","description":"HTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.","author":{"name":"Bundly"},"license":"MIT","private":false,"homepage":"https://github.com/bundlydev/ares/tree/main/packages/ares#readme","repository":{"type":"git","url":"git+https://github.com/bundlydev/ares.git"},"bugs":{"url":"https://github.com/bundlydev/ares/issues"},"keywords":["dfinity","ICP","Internet Computer","Http","REST API","Typescript","Internet Identity"],"main":"./build/index.js","module":"./build/index.mjs","types":"./build/index.d.ts","scripts":{"build":"tsup","prepublish":"npm run build","publish":"sh scripts/publish.sh","clean":"rm -rf build && rm -rf node_modules"},"dependencies":{"@dfinity/agent":"^1.3.0","@dfinity/principal":"^1.3.0","http-status-codes":"^2.3.0"},"devDependencies":{"@types/jest":"^29.5.12","jest":"^29.7.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","tsup":"^8.0.2","typescript":"^5.4.5"},"_id":"@bundly/ares-rest@0.1.1-beta.0","readme":"# Ares\n\nHTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.\n\n**NOTE: This is a Beta version**\n\n## How to use\n\n### Basic usage\n\n```typescript\nconst response = await ares<TestResponse>({\n  url: `${process.env.NEXT_PUBLIC_API_REST_URL}/test`,\n  method: \"POST\",\n  data: {\n    message: \"Hello, World!\",\n  },\n  headers: {\n    \"Content-Type\": \"application/json\",\n  },\n});\n```\n\n### Direct access to a method\n\n```typescript\nconst response = await ares.post<TestResponse>(\n  `${process.env.NEXT_PUBLIC_API_REST_URL}/test`,\n  {\n    message: \"Hello, World!\",\n  },\n  {\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n  }\n);\n```\n\n### Create an instance\n\n```typescript\nconst instance = ares.create({\n  baseURL: `${process.env.NEXT_PUBLIC_API_REST_URL}`,\n});\n\nconst response = await instance.post<TestResponse>(\n  \"/test\",\n  {\n    message: \"Hello, World!\",\n  },\n  {\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n  }\n);\n```\n\n## Know Issues\n\n- multipart/form-data is not supported\n","readmeFilename":"README.md","gitHead":"1f98925fd864ee23a8ee889453fd3abee979eead","_nodeVersion":"20.11.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-CfqFYv954Gdf5gyuHA2y7psl20fjENLni1Eyl9XzeinqaqpgWb2VN0F1Ylxq0EwfTj9/MH3LXU5ieRBQdyy4fg==","shasum":"aa6b03021068261a348a2f7545c7acc0ee707613","tarball":"https://registry.npmjs.org/@bundly/ares-rest/-/ares-rest-0.1.1-beta.0.tgz","fileCount":9,"unpackedSize":77609,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZM50iGQAVo3VWI4DwNiLBfz/Eamf8qC0/ttIieEB+KAIhAJd7GueYao+ZzEQHFPhcraQnHXrOOW8i58jYxOwdSBPe"}]},"_npmUser":{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},"directories":{},"maintainers":[{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},{"name":"alannnc","email":"alannnc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ares-rest_0.1.1-beta.0_1714946956837_0.7960260306677911"},"_hasShrinkwrap":false},"0.1.1":{"name":"@bundly/ares-rest","version":"0.1.1","description":"HTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.","author":{"name":"Bundly"},"license":"MIT","private":false,"homepage":"https://github.com/bundlydev/ares/tree/main/packages/ares#readme","repository":{"type":"git","url":"git+https://github.com/bundlydev/ares.git"},"bugs":{"url":"https://github.com/bundlydev/ares/issues"},"keywords":["dfinity","ICP","Internet Computer","Http","REST API","Typescript","Internet Identity"],"main":"./build/index.js","module":"./build/index.mjs","types":"./build/index.d.ts","scripts":{"build":"tsup","prenpm:publish":"npm run build","npm:publish":"sh ../../scripts/publish.sh","clean":"rm -rf build && rm -rf .turbo && rm -rf node_modules"},"dependencies":{"@dfinity/agent":"^1.3.0","@dfinity/principal":"^1.3.0","http-status-codes":"^2.3.0"},"devDependencies":{"@types/jest":"^29.5.12","jest":"^29.7.0","ts-jest":"^29.1.2","ts-node":"^10.9.2","tsup":"^8.0.2","typescript":"^5.4.5"},"_id":"@bundly/ares-rest@0.1.1","gitHead":"f9dc0a8311621088ac3303bdc5fd9e8d5c09e92f","_nodeVersion":"20.11.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-gqqXMtZ2au8MPnYoDVFeETETANUi6p+sG6n7m7GlgcTwkNRkS4S+6iMcVV73eiPT7iyeumx0WSxZl5eLzCbJNQ==","shasum":"dffd11a8867d4db4b786e83227ab8bbb09a6b511","tarball":"https://registry.npmjs.org/@bundly/ares-rest/-/ares-rest-0.1.1.tgz","fileCount":9,"unpackedSize":77642,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtkfZ4OFq62Jj6NIP4aAujRF7MWIDWatJRqATKxuRpnAiAoLkYPWABonCbMH9WPB1oCzGZAxZefCVcmRjHCRBgJfQ=="}]},"_npmUser":{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},"directories":{},"maintainers":[{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},{"name":"alannnc","email":"alannnc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ares-rest_0.1.1_1716920484112_0.8882716822355066"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-29T19:26:14.609Z","0.1.0-rc.0":"2024-02-29T19:26:14.880Z","modified":"2024-05-28T18:21:24.513Z","0.1.0-rc.1":"2024-02-29T19:31:46.024Z","0.1.0-rc.2":"2024-02-29T19:38:07.698Z","0.1.1-beta.0":"2024-05-05T22:09:17.038Z","0.1.1":"2024-05-28T18:21:24.259Z"},"maintainers":[{"name":"adrian.hidalgo","email":"adrian.hidalgo@mailfusion.me"},{"name":"alannnc","email":"alannnc@gmail.com"}],"description":"HTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.","homepage":"https://github.com/bundlydev/ares/tree/main/packages/ares#readme","keywords":["dfinity","ICP","Internet Computer","Http","REST API","Typescript","Internet Identity"],"repository":{"type":"git","url":"git+https://github.com/bundlydev/ares.git"},"author":{"name":"Bundly"},"bugs":{"url":"https://github.com/bundlydev/ares/issues"},"license":"MIT","readme":"# Ares\n\nHTTP client for calling REST APIs and seamlessly integrating Internet Identity with them.\n\n**NOTE: This is an Experimental version**\n\n## How to use\n\n### Basic usage\n\n```typescript\nconst response = await ares<TestResponse>({\n  url: `${process.env.NEXT_PUBLIC_API_REST_URL}/test`,\n  method: \"POST\",\n  data: {\n    message: \"Hello, World!\",\n  },\n  headers: {\n    \"Content-Type\": \"application/json\",\n  },\n});\n```\n\n### Direct access to a method\n\n```typescript\nconst response = await ares.post<TestResponse>(\n  `${process.env.NEXT_PUBLIC_API_REST_URL}/test`,\n  {\n    message: \"Hello, World!\",\n  },\n  {\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n  }\n);\n```\n\n### Create an instance\n\n```typescript\nconst instance = ares.create({\n  baseURL: `${process.env.NEXT_PUBLIC_API_REST_URL}`,\n});\n\nconst response = await instance.post<TestResponse>(\n  \"/test\",\n  {\n    message: \"Hello, World!\",\n  },\n  {\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n  }\n);\n```\n\n## Know Issues\n\n- multipart/form-data is not supported\n","readmeFilename":"README.md"}