Skip to content

Commit

Permalink
Reduce to just emit full strings and add size-limit test output to re…
Browse files Browse the repository at this point in the history
…view the results
  • Loading branch information
MSNev committed Jan 26, 2024
1 parent df4e409 commit 5eeb11b
Show file tree
Hide file tree
Showing 10 changed files with 3,871 additions and 1,518 deletions.
1,800 changes: 1,790 additions & 10 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion packages/opentelemetry-semantic-conventions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../scripts/peer-api-check.js"
"peer-api-check": "node ../../scripts/peer-api-check.js",
"size-check": "npm run compile && ts-mocha -p tsconfig.json 'test/**/*.test.ts'"
},
"keywords": [
"opentelemetry",
Expand Down Expand Up @@ -52,14 +53,19 @@
"@types/mocha": "10.0.6",
"@types/node": "18.6.5",
"@types/sinon": "10.0.20",
"@size-limit/file": "^11.0.1",
"@size-limit/time": "^11.0.1",
"@size-limit/webpack": "^11.0.1",
"codecov": "3.8.3",
"cross-var": "1.1.0",
"lerna": "6.6.2",
"mocha": "10.2.0",
"nock": "13.3.8",
"nyc": "15.1.0",
"sinon": "15.1.2",
"size-limit": "^11.0.1",
"ts-mocha": "10.0.0",
"ts-node": "10.9.2",
"typescript": "4.4.4"
},
"homepage": "/~https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-semantic-conventions",
Expand Down
101 changes: 0 additions & 101 deletions packages/opentelemetry-semantic-conventions/src/internal/constants.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
* @param values - An array of values to be used as keys and values in the map.
* @returns A populated version of the map with the values and keys derived from the values.
*/
export const createConstMap = <T>(values: Array<T[keyof T]>): T => {
/*#__NO_SIDE_EFFECTS__*/
export function createConstMap<T>(values: Array<T[keyof T]>): T {
// eslint-disable-next-line prefer-const, @typescript-eslint/no-explicit-any
let res: any = {};
const len = values.length;
Expand All @@ -31,4 +32,4 @@ export const createConstMap = <T>(values: Array<T[keyof T]>): T => {
}

return res as T;
};
}
Loading

0 comments on commit 5eeb11b

Please sign in to comment.