@smithy/service-client-documentation-generator 4.0.0 → 4.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.
package/dist-cjs/index.js CHANGED
@@ -21,17 +21,16 @@ var __decorateClass = (decorators, target, key, kind) => {
21
21
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
22
  if (decorator = decorators[i])
23
23
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
- if (kind && result)
25
- __defProp(target, key, result);
24
+ if (kind && result) __defProp(target, key, result);
26
25
  return result;
27
26
  };
28
27
 
29
28
  // src/index.ts
30
- var src_exports = {};
31
- __export(src_exports, {
29
+ var index_exports = {};
30
+ __export(index_exports, {
32
31
  load: () => load
33
32
  });
34
- module.exports = __toCommonJS(src_exports);
33
+ module.exports = __toCommonJS(index_exports);
35
34
 
36
35
 
37
36
  // src/sdk-client-toc-plugin.ts
@@ -48,14 +47,13 @@ var SdkClientTocPlugin = class {
48
47
  this.options = options;
49
48
  this.logger = logger;
50
49
  this.renderer = renderer;
51
- this.changeLinksToLowerCase = (context) => {
50
+ this.changeLinksToLowerCase = /* @__PURE__ */ __name((context) => {
52
51
  Object.keys(context.project.reflections).forEach((reflectionName) => {
53
52
  context.project.reflections[reflectionName]._alias = context.project.reflections[reflectionName].getAlias().toLowerCase();
54
53
  });
55
- };
56
- this.onEndResolve = (context) => {
57
- if (!this.clientDir)
58
- this.clientDir = this.loadClientDir(context.project);
54
+ }, "changeLinksToLowerCase");
55
+ this.onEndResolve = /* @__PURE__ */ __name((context) => {
56
+ if (!this.clientDir) this.clientDir = this.loadClientDir(context.project);
59
57
  for (const model of Object.values(context.project.reflections)) {
60
58
  const isEffectiveParent = model instanceof import_typedoc.ContainerReflection && model.children?.length || model.isProject();
61
59
  if (!isEffectiveParent || model.kindOf(import_typedoc.ReflectionKind.SomeModule)) {
@@ -75,7 +73,7 @@ var SdkClientTocPlugin = class {
75
73
  model.groups.splice(modulesIndex, 1);
76
74
  }
77
75
  }
78
- };
76
+ }, "onEndResolve");
79
77
  this.renderer.application.converter.on(import_typedoc.Converter.EVENT_END, this.changeLinksToLowerCase);
80
78
  this.renderer.application.converter.on(import_typedoc.Converter.EVENT_RESOLVE_END, this.onEndResolve);
81
79
  }
@@ -114,8 +112,7 @@ var SdkClientTocPlugin = class {
114
112
  */
115
113
  defineCategories(group, reflections) {
116
114
  const categories = group.categories || [];
117
- if (this.isCategorized(categories))
118
- return group.categories;
115
+ if (this.isCategorized(categories)) return group.categories;
119
116
  const clients = new import_typedoc.ReflectionCategory("Clients");
120
117
  const commands = new import_typedoc.ReflectionCategory("Commands");
121
118
  const paginators = new import_typedoc.ReflectionCategory("Paginators");
@@ -1,4 +1,4 @@
1
- import { Application } from "typedoc";
1
+ import type { Application } from "typedoc";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Logger, Options, Renderer } from "typedoc";
1
+ import type { Logger, Options, Renderer } from "typedoc";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Reflection } from "typedoc";
1
+ import type { Reflection } from "typedoc";
2
2
  /**
3
3
  * @internal
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-client-documentation-generator",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline service-client-documentation-generator",
@@ -10,7 +10,7 @@
10
10
  "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
- "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
13
+ "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "exit 0"
15
15
  },
16
16
  "main": "./dist-cjs/index.js",
@@ -21,6 +21,7 @@
21
21
  "url": "https://aws.amazon.com/javascript/"
22
22
  },
23
23
  "license": "Apache-2.0",
24
+ "sideEffects": false,
24
25
  "keywords": [
25
26
  "typedocplugin"
26
27
  ],
@@ -47,10 +48,10 @@
47
48
  "files": [
48
49
  "dist-*/**"
49
50
  ],
50
- "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/client-documentation-generator",
51
+ "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/client-documentation-generator",
51
52
  "repository": {
52
53
  "type": "git",
53
- "url": "https://github.com/awslabs/smithy-typescript.git",
54
+ "url": "https://github.com/smithy-lang/smithy-typescript.git",
54
55
  "directory": "packages/client-documentation-generator"
55
56
  },
56
57
  "publishConfig": {