@azure/arm-compute
Advanced tools
Comparing version 17.1.1-alpha.20220126.2 to 17.1.1-alpha.20220128.2
@@ -6,3 +6,3 @@ { | ||
"description": "A generated SDK for ComputeManagementClient.", | ||
"version": "17.1.1-alpha.20220126.2", | ||
"version": "17.1.1-alpha.20220128.2", | ||
"engines": { | ||
@@ -33,3 +33,3 @@ "node": ">=12.0.0" | ||
"@microsoft/api-extractor": "^7.18.11", | ||
"@rollup/plugin-commonjs": "11.0.2", | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-json": "^4.0.0", | ||
@@ -39,3 +39,3 @@ "@rollup/plugin-multi-entry": "^3.0.0", | ||
"mkdirp": "^1.0.4", | ||
"rollup": "^1.16.3", | ||
"rollup": "^2.0.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
@@ -42,0 +42,0 @@ "typescript": "~4.2.0", |
@@ -17,50 +17,2 @@ /* | ||
/** | ||
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. | ||
* | ||
* NOTE: this manual configuration is only needed because OpenTelemetry uses an | ||
* __exportStar downleveled helper function to declare its exports which confuses | ||
* rollup's automatic discovery mechanism. | ||
* | ||
* @returns an object reference that can be `...`'d into your cjs() configuration. | ||
*/ | ||
export function openTelemetryCommonJs() { | ||
const namedExports = {}; | ||
for (const key of [ | ||
"@opentelemetry/api", | ||
"@azure/core-tracing/node_modules/@opentelemetry/api" | ||
]) { | ||
namedExports[key] = [ | ||
"SpanKind", | ||
"TraceFlags", | ||
"getSpan", | ||
"setSpan", | ||
"SpanStatusCode", | ||
"getSpanContext", | ||
"setSpanContext" | ||
]; | ||
} | ||
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; | ||
for (const version of releasedOpenTelemetryVersions) { | ||
namedExports[ | ||
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. | ||
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` | ||
] = [ | ||
"SpanKind", | ||
"TraceFlags", | ||
"getSpan", | ||
"setSpan", | ||
"StatusCode", | ||
"CanonicalCode", | ||
"getSpanContext", | ||
"setSpanContext" | ||
]; | ||
} | ||
return namedExports; | ||
} | ||
// #region Warning Handler | ||
@@ -126,18 +78,3 @@ | ||
}), | ||
cjs({ | ||
namedExports: { | ||
// Chai's strange internal architecture makes it impossible to statically | ||
// analyze its exports. | ||
chai: [ | ||
"version", | ||
"use", | ||
"util", | ||
"config", | ||
"expect", | ||
"should", | ||
"assert" | ||
], | ||
...openTelemetryCommonJs() | ||
} | ||
}), | ||
cjs(), | ||
json(), | ||
@@ -144,0 +81,0 @@ sourcemaps() |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11710593
164964