@addresszen/openapi 3.4.0 → 3.5.2

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.4.0",
5
- "devDependencies": {
6
- "@cablanchard/semantic-release": "~2.0.0",
7
- "@cablanchard/tsconfig": "~2.0.0",
8
- "@redocly/cli": "~1.34.5",
9
- "prettier": "~2.6.2",
10
- "semantic-release": "~24.2.7",
11
- "typescript": "~4.7.3"
4
+ "version": "3.5.2",
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": "redocly preview-docs",
17
- "replace": "ts-node replace.ts",
18
- "build": "tsc",
19
- "test": "redocly lint dist/openapi.yaml && redocly 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.12.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/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 });