{"_id":"@cyberbus-net/cyberbus-js-client","_rev":"5-c2e517b4e12bb8fc647632759610c913","name":"@cyberbus-net/cyberbus-js-client","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"@cyberbus-net/cyberbus-js-client","version":"0.1.0","author":{"name":"karminski","email":"code.karminski@outlook.com"},"license":"AGPL-3.0","_id":"@cyberbus-net/cyberbus-js-client@0.1.0","maintainers":[{"name":"karminski","email":"code.karminski@outlook.com"}],"homepage":"https://github.com/cyberbus-net/cyberbus-js-client#readme","bugs":{"url":"https://github.com/cyberbus-net/cyberbus-js-client/issues"},"dist":{"shasum":"e15fad5847fe7f12576ffd1dce8a744956ef0eef","tarball":"https://registry.npmjs.org/@cyberbus-net/cyberbus-js-client/-/cyberbus-js-client-0.1.0.tgz","fileCount":519,"integrity":"sha512-J979G2/4iBS8KyJeDSnFNXsjYj7CKwgVHz4YNuf0bNhalPlFuf955t7odI+g7T0vmdcvmQbDR+NIP1x4rMat1A==","signatures":[{"sig":"MEUCIAgxuETYYipd0jUDk72gCdzwxwPVS+h8m9lR/fSBDNWwAiEAwczfsOM88Ve+1a/fUMaLeW1InH43AgZ9agEaAiu0EDQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":219385},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"06f09397ddfb486ad9526a73b0b1b2312a0c878b","scripts":{"docs":"typedoc src/index.ts","lint":"tsc --noEmit && eslint --report-unused-disable-directives && prettier --check src","build":"tsc","prepare":"pnpm run build && husky"},"_npmUser":{"name":"karminski","email":"code.karminski@outlook.com"},"importSort":{".js, .jsx, .ts, .tsx":{"style":"module","parser":"typescript"}},"repository":{"url":"git+https://github.com/cyberbus-net/cyberbus-js-client.git","type":"git"},"_npmVersion":"10.8.2","description":"A javascript / typescript client for Cyberbus","directories":{},"lint-staged":{"package.json":["sortpack"],"*.{ts,tsx,js}":["prettier --write","eslint --fix"]},"_nodeVersion":"22.6.0","dependencies":{"eslint-scope":"^8.0.2","eslint-visitor-keys":"^4.0.0","eslint-config-prettier":"^9.1.0","prettier-linter-helpers":"^1.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.9.0","devDependencies":{"husky":"^9.1.4","eslint":"^9.8.0","typedoc":"^0.26.5","prettier":"^3.3.3","sortpack":"^2.4.0","typescript":"^5.5.4","@types/node":"^22.1.0","lint-staged":"^15.2.7","typescript-eslint":"^8.0.0","eslint-plugin-prettier":"^5.2.1","@typescript-eslint/parser":"^8.0.0","prettier-plugin-import-sort":"^0.0.7","prettier-plugin-packagejson":"^2.5.1","@typescript-eslint/eslint-plugin":"^8.0.0","prettier-plugin-organize-imports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cyberbus-js-client_0.1.0_1725771828647_0.6736758342814626","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@cyberbus-net/cyberbus-js-client","version":"0.1.1","author":{"name":"karminski","email":"code.karminski@outlook.com"},"license":"AGPL-3.0","_id":"@cyberbus-net/cyberbus-js-client@0.1.1","maintainers":[{"name":"karminski","email":"code.karminski@outlook.com"}],"homepage":"https://github.com/cyberbus-net/cyberbus-js-client#readme","bugs":{"url":"https://github.com/cyberbus-net/cyberbus-js-client/issues"},"dist":{"shasum":"cf6e3a7efe953c62019af2d62d524c7eab105bb7","tarball":"https://registry.npmjs.org/@cyberbus-net/cyberbus-js-client/-/cyberbus-js-client-0.1.1.tgz","fileCount":519,"integrity":"sha512-AuMBUvG4ItRAVfEV+XCbkR5lqTJr8qVXX6XPRt7zZo2rrW2hzcOkKDDljI9edAU6tgkP+hhZAUznBfl+JlxeBA==","signatures":[{"sig":"MEUCIQDt+4/sGtgGxCA/OzWcywF4HDa9zeNLt5KqCFZZCQtOzQIgMu1uYlAq7dVM+/J6SB33OfRLanJsuF1sMWccRYfxTRs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":219420},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"da63e2645cd55fb5916799bf5f741b13ed094031","scripts":{"docs":"typedoc src/index.ts","lint":"tsc --noEmit && eslint --report-unused-disable-directives && prettier --check src","build":"tsc","prepare":"pnpm run build && husky"},"_npmUser":{"name":"karminski","email":"code.karminski@outlook.com"},"importSort":{".js, .jsx, .ts, .tsx":{"style":"module","parser":"typescript"}},"repository":{"url":"git+https://github.com/cyberbus-net/cyberbus-js-client.git","type":"git"},"_npmVersion":"10.8.2","description":"A javascript / typescript client for Cyberbus","directories":{},"lint-staged":{"package.json":["sortpack"],"*.{ts,tsx,js}":["prettier --write","eslint --fix"]},"_nodeVersion":"22.6.0","dependencies":{"eslint-scope":"^8.0.2","eslint-visitor-keys":"^4.0.0","eslint-config-prettier":"^9.1.0","prettier-linter-helpers":"^1.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.9.0","devDependencies":{"husky":"^9.1.4","eslint":"^9.8.0","typedoc":"^0.26.5","prettier":"^3.3.3","sortpack":"^2.4.0","typescript":"^5.5.4","@types/node":"^22.1.0","lint-staged":"^15.2.7","typescript-eslint":"^8.0.0","eslint-plugin-prettier":"^5.2.1","@typescript-eslint/parser":"^8.0.0","prettier-plugin-import-sort":"^0.0.7","prettier-plugin-packagejson":"^2.5.1","@typescript-eslint/eslint-plugin":"^8.0.0","prettier-plugin-organize-imports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cyberbus-js-client_0.1.1_1725780330141_0.23706960817752054","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@cyberbus-net/cyberbus-js-client","version":"0.1.2","author":{"name":"karminski","email":"code.karminski@outlook.com"},"license":"AGPL-3.0","_id":"@cyberbus-net/cyberbus-js-client@0.1.2","maintainers":[{"name":"karminski","email":"code.karminski@outlook.com"}],"homepage":"https://github.com/cyberbus-net/cyberbus-js-client#readme","bugs":{"url":"https://github.com/cyberbus-net/cyberbus-js-client/issues"},"dist":{"shasum":"9ef53d1deb9938029d2731228f886f17be9351ec","tarball":"https://registry.npmjs.org/@cyberbus-net/cyberbus-js-client/-/cyberbus-js-client-0.1.2.tgz","fileCount":523,"integrity":"sha512-AiUx59IzjFRzg9SX3apf8Vd5gKD47j3FWFihQJo0bXWDzQtMaA8ujwccu58Ftgp4ynSbWwMKuRjhreejdqlA9g==","signatures":[{"sig":"MEUCIQDHhYgNb/6s4DL0iQd8hVJdoXehKhVTQ3LSSqhgpqI5zgIgcaGlIQH0d8Y0og/4LSEQGyvAX6thteIaJTDCaBWRvLU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":220445},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"da63e2645cd55fb5916799bf5f741b13ed094031","scripts":{"docs":"typedoc src/index.ts","lint":"tsc --noEmit && eslint --report-unused-disable-directives && prettier --check src","build":"tsc","prepare":"pnpm run build && husky"},"_npmUser":{"name":"karminski","email":"code.karminski@outlook.com"},"importSort":{".js, .jsx, .ts, .tsx":{"style":"module","parser":"typescript"}},"repository":{"url":"git+https://github.com/cyberbus-net/cyberbus-js-client.git","type":"git"},"_npmVersion":"10.8.2","description":"A javascript / typescript client for Cyberbus","directories":{},"lint-staged":{"package.json":["sortpack"],"*.{ts,tsx,js}":["prettier --write","eslint --fix"]},"_nodeVersion":"22.8.0","dependencies":{"eslint-scope":"^8.0.2","eslint-visitor-keys":"^4.0.0","eslint-config-prettier":"^9.1.0","prettier-linter-helpers":"^1.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.9.0","devDependencies":{"husky":"^9.1.4","eslint":"^9.8.0","typedoc":"^0.26.5","prettier":"^3.3.3","sortpack":"^2.4.0","typescript":"^5.5.4","@types/node":"^22.1.0","lint-staged":"^15.2.7","typescript-eslint":"^8.0.0","eslint-plugin-prettier":"^5.2.1","@typescript-eslint/parser":"^8.0.0","prettier-plugin-import-sort":"^0.0.7","prettier-plugin-packagejson":"^2.5.1","@typescript-eslint/eslint-plugin":"^8.0.0","prettier-plugin-organize-imports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cyberbus-js-client_0.1.2_1725981501136_0.12625386712546982","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@cyberbus-net/cyberbus-js-client","version":"0.1.3","author":{"name":"karminski","email":"code.karminski@outlook.com"},"license":"AGPL-3.0","_id":"@cyberbus-net/cyberbus-js-client@0.1.3","maintainers":[{"name":"karminski","email":"code.karminski@outlook.com"}],"homepage":"https://github.com/cyberbus-net/cyberbus-js-client#readme","bugs":{"url":"https://github.com/cyberbus-net/cyberbus-js-client/issues"},"dist":{"shasum":"9a1a7e88239a352d4c8a5545926b49bc005c84a2","tarball":"https://registry.npmjs.org/@cyberbus-net/cyberbus-js-client/-/cyberbus-js-client-0.1.3.tgz","fileCount":523,"integrity":"sha512-odcwc+V5OjHjYgmwbkiAQNWHsk3z+accQDSXBXu5S1ezesic1/kO+np47007TZ+PeRwSRveYFUKq4lFEnEU7zA==","signatures":[{"sig":"MEQCIHl3hnTMCyIZ5Wh9NDB0QW5ZbXmWcSoHsA7k6+gCmOcfAiAtyGxEAbyNR84zG3TPfJIN7o0NTaLOzlXQWH4Zo2obxw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":220523},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"da63e2645cd55fb5916799bf5f741b13ed094031","scripts":{"docs":"typedoc src/index.ts","lint":"tsc --noEmit && eslint --report-unused-disable-directives && prettier --check src","build":"tsc","prepare":"pnpm run build && husky"},"_npmUser":{"name":"karminski","email":"code.karminski@outlook.com"},"importSort":{".js, .jsx, .ts, .tsx":{"style":"module","parser":"typescript"}},"repository":{"url":"git+https://github.com/cyberbus-net/cyberbus-js-client.git","type":"git"},"_npmVersion":"10.8.2","description":"A javascript / typescript client for Cyberbus","directories":{},"lint-staged":{"package.json":["sortpack"],"*.{ts,tsx,js}":["prettier --write","eslint --fix"]},"_nodeVersion":"22.8.0","dependencies":{"eslint-scope":"^8.0.2","eslint-visitor-keys":"^4.0.0","eslint-config-prettier":"^9.1.0","prettier-linter-helpers":"^1.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.9.0","devDependencies":{"husky":"^9.1.4","eslint":"^9.8.0","typedoc":"^0.26.5","prettier":"^3.3.3","sortpack":"^2.4.0","typescript":"^5.5.4","@types/node":"^22.1.0","lint-staged":"^15.2.7","typescript-eslint":"^8.0.0","eslint-plugin-prettier":"^5.2.1","@typescript-eslint/parser":"^8.0.0","prettier-plugin-import-sort":"^0.0.7","prettier-plugin-packagejson":"^2.5.1","@typescript-eslint/eslint-plugin":"^8.0.0","prettier-plugin-organize-imports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cyberbus-js-client_0.1.3_1726160313171_0.10922735824880281","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@cyberbus-net/cyberbus-js-client","version":"0.2.1","author":{"name":"karminski","email":"code.karminski@outlook.com"},"license":"AGPL-3.0","_id":"@cyberbus-net/cyberbus-js-client@0.2.1","maintainers":[{"name":"karminski","email":"code.karminski@outlook.com"}],"homepage":"https://github.com/cyberbus-net/cyberbus-js-client#readme","bugs":{"url":"https://github.com/cyberbus-net/cyberbus-js-client/issues"},"dist":{"shasum":"9998d6e581b2f73098b9d2564969981c851331c6","tarball":"https://registry.npmjs.org/@cyberbus-net/cyberbus-js-client/-/cyberbus-js-client-0.2.1.tgz","fileCount":525,"integrity":"sha512-LZlVWK0M6RrOgnK79H7A8FZCRA2GN1eCJ5t3/HJkuNb6TzZA9jcwOxipDwfg1cTrpysi/1EeSlumE/PlrFOVaw==","signatures":[{"sig":"MEYCIQDwDudCsZvkBsXd1Pmfk4IF+YD7MuyGNWSq1lVo7rucEAIhAOgStZj8ZLxdpROGrhvnYHIMMTk3XABspaSuo/P6dbS+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":213414},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"a7418bbb56c02c549af82d503d23992fc6ac5e4e","scripts":{"docs":"typedoc src/index.ts","lint":"tsc --noEmit && eslint --report-unused-disable-directives && prettier --check src","build":"tsc","prepare":"pnpm run build && husky"},"_npmUser":{"name":"karminski","email":"code.karminski@outlook.com"},"importSort":{".js, .jsx, .ts, .tsx":{"style":"module","parser":"typescript"}},"repository":{"url":"git+https://github.com/cyberbus-net/cyberbus-js-client.git","type":"git"},"_npmVersion":"10.7.0","description":"A javascript / typescript client for Cyberbus","directories":{},"lint-staged":{"package.json":["sortpack"],"*.{ts,tsx,js}":["prettier --write","eslint --fix"]},"_nodeVersion":"20.15.0","dependencies":{"eslint-scope":"^8.0.2","eslint-visitor-keys":"^4.0.0","eslint-config-prettier":"^9.1.0","prettier-linter-helpers":"^1.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.9.0","devDependencies":{"husky":"^9.1.4","eslint":"^9.8.0","typedoc":"^0.26.5","prettier":"^3.3.3","sortpack":"^2.4.0","typescript":"^5.5.4","@types/node":"^22.1.0","lint-staged":"^15.2.7","typescript-eslint":"^8.0.0","eslint-plugin-prettier":"^5.2.1","@typescript-eslint/parser":"^8.0.0","prettier-plugin-import-sort":"^0.0.7","prettier-plugin-packagejson":"^2.5.1","@typescript-eslint/eslint-plugin":"^8.0.0","prettier-plugin-organize-imports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cyberbus-js-client_0.2.1_1731171178842_0.13676241795284416","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"@cyberbus-net/cyberbus-js-client","description":"A javascript / typescript client for Cyberbus","version":"0.2.2","author":{"name":"karminski","email":"code.karminski@outlook.com"},"license":"AGPL-3.0","main":"./dist/index.js","scripts":{"build":"tsc","docs":"typedoc src/index.ts","lint":"tsc --noEmit && eslint --report-unused-disable-directives && prettier --check src","prepare":"pnpm run build && husky"},"homepage":"https://github.com/cyberbus-net/cyberbus-js-client#readme","repository":{"type":"git","url":"git+https://github.com/cyberbus-net/cyberbus-js-client.git"},"bugs":{"url":"https://github.com/cyberbus-net/cyberbus-js-client/issues"},"dependencies":{"eslint-config-prettier":"^9.1.0","eslint-scope":"^8.0.2","eslint-visitor-keys":"^4.0.0","prettier-linter-helpers":"^1.0.0"},"devDependencies":{"@types/node":"^22.1.0","@typescript-eslint/eslint-plugin":"^8.0.0","@typescript-eslint/parser":"^8.0.0","eslint":"^9.8.0","eslint-plugin-prettier":"^5.2.1","husky":"^9.1.4","lint-staged":"^15.2.7","prettier":"^3.3.3","prettier-plugin-import-sort":"^0.0.7","prettier-plugin-organize-imports":"^4.0.0","prettier-plugin-packagejson":"^2.5.1","sortpack":"^2.4.0","typedoc":"^0.26.5","typescript":"^5.5.4","typescript-eslint":"^8.0.0"},"packageManager":"pnpm@9.9.0","types":"./dist/index.d.ts","lint-staged":{"*.{ts,tsx,js}":["prettier --write","eslint --fix"],"package.json":["sortpack"]},"importSort":{".js, .jsx, .ts, .tsx":{"style":"module","parser":"typescript"}},"_id":"@cyberbus-net/cyberbus-js-client@0.2.2","gitHead":"f05252df55207014eb6661cffc4ac88fb83c2947","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-SThXV6H9GdKz60PlHBYXiA3vMaHRSErKvHnqBcIjHMB1DnR+xRTj6ZTt2CGtYT7+etEbkkBKl+5IEkFqE2gMbQ==","shasum":"e008c26ca582346f0728109607c9d47f8e71d6ab","tarball":"https://registry.npmjs.org/@cyberbus-net/cyberbus-js-client/-/cyberbus-js-client-0.2.2.tgz","fileCount":525,"unpackedSize":214139,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHuVdutCm7/ESl66lYS25saFcmXbhC1Dtq17oAoPITJcAiEA5mgHF7GllrQIqWqZdXwkWkZo4+fq00w5JbiKjVmjEzM="}]},"_npmUser":{"name":"karminski","email":"code.karminski@outlook.com"},"directories":{},"maintainers":[{"name":"karminski","email":"code.karminski@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cyberbus-js-client_0.2.2_1731176590187_0.5369581885544121"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-08T05:03:48.546Z","modified":"2024-11-09T18:23:10.651Z","0.1.0":"2024-09-08T05:03:48.905Z","0.1.1":"2024-09-08T07:25:30.439Z","0.1.2":"2024-09-10T15:18:21.412Z","0.1.3":"2024-09-12T16:58:33.351Z","0.2.1":"2024-11-09T16:52:59.068Z","0.2.2":"2024-11-09T18:23:10.475Z"},"bugs":{"url":"https://github.com/cyberbus-net/cyberbus-js-client/issues"},"author":{"name":"karminski","email":"code.karminski@outlook.com"},"license":"AGPL-3.0","homepage":"https://github.com/cyberbus-net/cyberbus-js-client#readme","repository":{"type":"git","url":"git+https://github.com/cyberbus-net/cyberbus-js-client.git"},"description":"A javascript / typescript client for Cyberbus","maintainers":[{"name":"karminski","email":"code.karminski@outlook.com"}],"readme":"# cyberbus-js-client\n\nA javascript / typescript http client and type system for cyberbus. Forked from lemmy.\n\n## Installation\n\n`pnpm install cyberbus-js-client`\n\n## Usage\n\n### HTTP Client\n\n\n```ts\nimport { CyberbusHttp, Login } from \"cyberbus-js-client\";\n\n// Build the client\nconst baseUrl = \"https://cyberbus.net\";\nconst client: CyberbusHttp = new CyberbusHttp(baseUrl);\n\n// Build the login form\nconst loginForm: Login = {\n  username_or_email: \"my_name\",\n  password: \"my_pass\",\n};\n\n// Login and set the client headers with your jwt\nconst { jwt } = await client.login(loginForm);\nclient.setHeaders({ Authorization: `Bearer ${jwt}` });\n\n// Fetch top posts for the day\nconst getPostsForm: GetPosts = {\n  sort: \"TopDay\",\n  type_: \"Local\",\n};\nconst posts = await client.getPosts(getPostsForm);\n```\n\n## Development\n\nUse `pnpm add` to develop and test changes locally:\n\n```\npnpm add path/to/cyberbus-js-client\n```\n","readmeFilename":"README.md"}