@addresszen/openapi 3.3.0 → 3.5.1

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.
package/package.json CHANGED
@@ -1,52 +1,41 @@
1
1
  {
2
2
  "name": "@addresszen/openapi",
3
3
  "description": "AddressZen OpenAPI v3 specifications",
4
- "version": "3.3.0",
5
- "devDependencies": {
6
- "@cablanchard/semantic-release": "~1.3.4",
7
- "@cablanchard/tsconfig": "~2.0.0",
8
- "@redocly/openapi-cli": "~1.0.0-beta.55",
9
- "prettier": "~2.6.2",
10
- "semantic-release": "~19.0.2",
11
- "typescript": "~4.7.3"
4
+ "version": "3.5.1",
5
+ "type": "module",
6
+ "main": "./dist/openapi.cjs",
7
+ "module": "./dist/openapi.mjs",
8
+ "types": "./dist/openapi.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/openapi.d.ts",
12
+ "import": "./dist/openapi.mjs",
13
+ "require": "./dist/openapi.cjs"
14
+ },
15
+ "./dist/openapi.json": "./dist/openapi.json",
16
+ "./dist/openapi.yaml": "./dist/openapi.yaml",
17
+ "./dist/*": "./dist/*"
12
18
  },
13
- "scripts": {
14
- "prepublishOnly": "npm run build",
15
- "semantic-release": "semantic-release --no-ci",
16
- "start": "openapi preview-docs",
17
- "replace": "ts-node replace.ts",
18
- "build": "tsc",
19
- "test": "openapi lint dist/openapi.yaml && openapi lint dist/openapi.json"
19
+ "devDependencies": {
20
+ "@redocly/cli": "~2.0.7",
21
+ "@stoplight/prism-cli": "~5.0.0",
22
+ "tsup": "~8.5.1",
23
+ "typescript": "~5.7.2",
24
+ "wrangler": "~4.80.0",
25
+ "@atlas/tsconfig-base": "0.0.0",
26
+ "@atlas/tsup-config": "0.0.0"
20
27
  },
21
- "main": "dist/openapi.js",
22
- "types": "dist/openapi.d.ts",
23
28
  "author": {
24
- "name": "Addressen",
29
+ "name": "AddressZen",
25
30
  "email": "support@addresszen.com",
26
31
  "url": "https://addresszen.com"
27
32
  },
28
- "bugs": {
29
- "url": "https://github.com/addresszen/openapi/issues",
30
- "email": "support@addresszen.com"
33
+ "license": "Copyright IDDQD Limited",
34
+ "publishConfig": {
35
+ "access": "public"
31
36
  },
32
- "homepage": "https://github.com/addresszen/openapi",
33
- "repository": {
34
- "type": "git",
35
- "url": "https://github.com/addresszen/openapi.git"
36
- },
37
- "release": {
38
- "extends": "@cablanchard/semantic-release/dist/npm",
39
- "branches": [
40
- "main",
41
- {
42
- "name": "beta",
43
- "prerelease": true
44
- },
45
- "next"
46
- ]
47
- },
48
- "license": "MIT",
49
37
  "files": [
38
+ "openapi.ts",
50
39
  "dist"
51
40
  ],
52
41
  "keywords": [
@@ -55,9 +44,13 @@
55
44
  "Address Verification",
56
45
  "Address Lookup"
57
46
  ],
58
- "dependencies": {
59
- "@ideal-postcodes/openapi": "~4.8.0",
60
- "replace-in-file": "~6.3.2",
61
- "ts-node": "~10.7.0"
47
+ "scripts": {
48
+ "check-types": "tsgo --noEmit",
49
+ "build": "tsup && node stamp-version.mjs",
50
+ "build:site": "node stamp-version.mjs site-dist && cp site/index.html site/_headers site-dist/ && cp -R site/public site-dist/",
51
+ "clean": "rm -rf dist site-dist",
52
+ "start": "redocly preview --project-dir dist",
53
+ "mock": "pnpm build && prism mock ./dist/openapi.yaml",
54
+ "lint": "redocly lint dist/openapi.yaml && redocly lint dist/openapi.json"
62
55
  }
63
- }
56
+ }
package/CHANGELOG.md DELETED
@@ -1,53 +0,0 @@
1
- # [3.3.0](https://github.com/addresszen/openapi/compare/3.2.0...3.3.0) (2024-07-24)
2
-
3
-
4
- ### Features
5
-
6
- * **Release:** Bump spec to latest ([cff75ed](https://github.com/addresszen/openapi/commit/cff75eda89961bdab58aae348e936f8ce5da82bd))
7
-
8
- # [3.2.0](https://github.com/addresszen/openapi/compare/3.1.0...3.2.0) (2024-05-14)
9
-
10
-
11
- ### Features
12
-
13
- * **Spec:** Update spec to 4.6.0 ([125b828](https://github.com/addresszen/openapi/commit/125b828fe1df573186f024aa5aa4e5e5ccfca952))
14
-
15
- # [3.1.0](https://github.com/addresszen/openapi/compare/3.0.0...3.1.0) (2022-07-26)
16
-
17
-
18
- ### Features
19
-
20
- * **deps:** bump @ideal-postcodes/openapi from 3.0.0 to 3.1.0 ([#17](https://github.com/addresszen/openapi/issues/17)) ([9be7790](https://github.com/addresszen/openapi/commit/9be77900f2756de549f21568cf27a2155b6885bb))
21
-
22
- # [3.0.0](https://github.com/addresszen/openapi/compare/2.0.3...3.0.0) (2022-06-09)
23
-
24
-
25
- ### Features
26
-
27
- * **deps:** bump @ideal-postcodes/openapi from 2.1.1 to 3.0.0 ([#11](https://github.com/addresszen/openapi/issues/11)) ([dedb7fc](https://github.com/addresszen/openapi/commit/dedb7fcc94fcd3f881f08269dcf336661a220529))
28
-
29
-
30
- ### BREAKING CHANGES
31
-
32
- * **deps:** Bumps API to v3
33
-
34
- ## [2.0.3](https://github.com/addresszen/openapi/compare/2.0.2...2.0.3) (2022-06-08)
35
-
36
-
37
- ### Bug Fixes
38
-
39
- * **deps:** bump @ideal-postcodes/openapi from 2.0.1 to 2.1.1 ([#5](https://github.com/addresszen/openapi/issues/5)) ([493aacc](https://github.com/addresszen/openapi/commit/493aacc7b0d19cb1ac1eed3dfe4d7740a88b3044))
40
-
41
- ## [2.0.2](https://github.com/addresszen/openapi/compare/2.0.1...2.0.2) (2022-04-21)
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * **Endpoints:** Point to api.addresszen.com ([f98f3c7](https://github.com/addresszen/openapi/commit/f98f3c710ea93fb3f88b345b9c2f91774bbaf42a))
47
-
48
- ## [2.0.1](https://github.com/addresszen/openapi/compare/2.0.0...2.0.1) (2022-04-21)
49
-
50
-
51
- ### Bug Fixes
52
-
53
- * **Initial:** Trigger initial release ([6b768fc](https://github.com/addresszen/openapi/commit/6b768fcaa6244181525cd2c78ba09e7a95d6c721))
package/dist/_headers DELETED
@@ -1,2 +0,0 @@
1
- /*
2
- Access-Control-Allow-Origin: *
package/dist/index.html DELETED
@@ -1,37 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>API Reference - AddressZen</title>
6
- <!-- needed for adaptive design -->
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <link rel="icon" type="image/svg" href="http://img.ideal-postcodes.co.uk/favicon.svg">
9
- <link rel="icon" type="image/png" href="http://img.ideal-postcodes.co.uk/favicon.png">
10
- <link rel="preconnect" href="https://fonts.googleapis.com">
11
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12
- <link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&family=Lato&family=Lora:wght@500&display=swap" rel="stylesheet">
13
- <style>
14
- @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&family=Lato&family=Lora:wght@500&display=swap');
15
- body {
16
- margin: 0;
17
- padding: 0;
18
- }
19
- code {
20
- font-family: "Fira Code", monospace;
21
- }
22
- .menu-content {
23
- background: #7534d0 !important;
24
- background: -webkit-linear-gradient(left, #6629bd, #673ba5) !important;
25
- background: linear-gradient(to right, #6629bd, #673ba5) !important;
26
- }
27
- </style>
28
- </head>
29
- <body>
30
- <div id="redoc"></div>
31
- <script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"> </script>
32
- <script>
33
- var container = document.getElementById('redoc');
34
- Redoc.init("./openapi.json", {"htmlTemplate":"./openapi/index.html","theme":{"sidebar":{"textColor":"#f8f8ff","activeBgColor":"#000000","backgroundColor":"#6629bd","activeTextColor":"#f8f8ff"},"typography":{"code":{"fontFamily":"Fira Code, monospace","fontSize":"13px","backgroundColor":"rgba(38, 50, 56, 0.05)","color":"#e53935"},"headings":{"fontFamily":"Lato, sans-serif"},"fontFamily":"Lato, sans-serif"},"colors":{"primary":{"main":"#7534d0"}}}}, container)
35
- </script>
36
- </body>
37
- </html>
package/dist/openapi.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by openapi-typescript.
4
- * Do not make direct changes to the file.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });