@heroku/buildpack-registry 1.0.4 → 1.1.0

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.
@@ -33,6 +33,7 @@ export type BuildpackBody = {
33
33
  description: string;
34
34
  category: Category;
35
35
  two_factor_authentication: boolean;
36
+ archived: boolean;
36
37
  blob_url: string;
37
38
  source: {
38
39
  type: 'github';
@@ -14,6 +14,7 @@ export type InfoData = {
14
14
  license: string;
15
15
  category?: string;
16
16
  description: string;
17
+ archived: boolean;
17
18
  readme?: string;
18
19
  support?: string;
19
20
  source?: string;
@@ -130,6 +130,7 @@ class BuildpackRegistry {
130
130
  const data = {
131
131
  description: bp_body.description,
132
132
  category: bp_body.category,
133
+ archived: bp_body.archived,
133
134
  license: revision.license
134
135
  };
135
136
  if (bp_body.support.method === 'email') {
package/package.json CHANGED
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "name": "@heroku/buildpack-registry",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "Node.js/TypeScript library for interfacing with the Heroku Buildpack Registry",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "prepare": "tsc",
8
+ "clean": "rimraf dist",
9
+ "build": "npm run clean && tsc",
9
10
  "lint": "eslint .",
10
- "test": "vitest run --coverage",
11
- "posttest": "tsc -p test --noEmit && npm run lint"
11
+ "lint:fix": "eslint . --fix",
12
+ "typecheck:test": "tsc -p test --noEmit",
13
+ "test": "vitest run",
14
+ "test:watch": "vitest",
15
+ "test:coverage": "vitest run --coverage --coverage.reporter=text-summary --coverage.reporter=lcovonly",
16
+ "prepare": "npm run build"
12
17
  },
13
18
  "repository": {
14
19
  "type": "git",
@@ -21,14 +26,15 @@
21
26
  },
22
27
  "homepage": "https://github.com/heroku/buildpack-registry.js#readme",
23
28
  "devDependencies": {
24
- "@types/node": "^20.14.8",
29
+ "@types/node": "^26.6.2",
25
30
  "@types/node-fetch": "^2.1.2",
26
- "@vitest/coverage-v8": "^4.0.0",
31
+ "@vitest/coverage-v8": "^4.1.11",
27
32
  "eslint": "^10.7.0",
28
- "nock": "^13.3",
33
+ "nock": "^15.0",
34
+ "rimraf": "^6.1.3",
29
35
  "typescript": "^5.7",
30
36
  "typescript-eslint": "^8.0.0",
31
- "vitest": "^4.0.0"
37
+ "vitest": "^4.1.11"
32
38
  },
33
39
  "dependencies": {
34
40
  "node-fetch": "^2.2.0",