Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dynatrace/backstage-plugin-dql-common

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynatrace/backstage-plugin-dql-common - npm Package Compare versions

Comparing version 2.0.0 to 2.1.1

dist/schema/dynatraceQueries.esm.js

24

dist/index.cjs.js

@@ -20,4 +20,3 @@ 'use strict';

const validate = (data) => {
if (data.length === 0)
return true;
if (data.length === 0) return true;
const keys = ___default.default.keys(data[0]);

@@ -40,3 +39,24 @@ return data.every((item) => ___default.default.isEqual(___default.default.keys(item), keys));

const entityQuerySchema = zod.z.object({
/**
* The id of the query.
*/
id: zod.z.string(),
/**
* The query itself.
*/
query: zod.z.string(),
/**
* The description of the query.
*/
description: zod.z.string().optional(),
/**
* The environments in which the query is executed.
*/
environments: zod.z.array(zod.z.string()).optional()
});
const dynatraceCatalogQuerySchema = zod.z.array(entityQuerySchema).min(1);
exports.TabularDataFactory = TabularDataFactory;
exports.dynatraceCatalogQuerySchema = dynatraceCatalogQuerySchema;
//# sourceMappingURL=index.cjs.js.map
import { z } from 'zod';
import { EntityMeta, Entity } from '@backstage/catalog-model';

@@ -43,7 +44,3 @@ declare const tableCell: z.ZodUnion<[z.ZodString, z.ZodObject<{

declare const TabularDataFactory: {
fromString: (input: string) => Record<string, string | {
type: "link";
url: string;
text: string;
}>[];
fromString: (input: string) => TabularData;
fromObject: (input: unknown) => Record<string, string | {

@@ -59,2 +56,84 @@ type: "link";

export { type TabularData, type TabularDataCell, TabularDataFactory, type TabularDataRow };
/**
* @license
* Copyright 2024 Dynatrace LLC
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
declare const entityQuerySchema: z.ZodObject<{
/**
* The id of the query.
*/
id: z.ZodString;
/**
* The query itself.
*/
query: z.ZodString;
/**
* The description of the query.
*/
description: z.ZodOptional<z.ZodString>;
/**
* The environments in which the query is executed.
*/
environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
id: string;
query: string;
description?: string | undefined;
environments?: string[] | undefined;
}, {
id: string;
query: string;
description?: string | undefined;
environments?: string[] | undefined;
}>;
declare const dynatraceCatalogQuerySchema: z.ZodArray<z.ZodObject<{
/**
* The id of the query.
*/
id: z.ZodString;
/**
* The query itself.
*/
query: z.ZodString;
/**
* The description of the query.
*/
description: z.ZodOptional<z.ZodString>;
/**
* The environments in which the query is executed.
*/
environments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
id: string;
query: string;
description?: string | undefined;
environments?: string[] | undefined;
}, {
id: string;
query: string;
description?: string | undefined;
environments?: string[] | undefined;
}>, "many">;
type EntityQuery = z.infer<typeof entityQuerySchema>;
type ExtendedEntityMetadata = EntityMeta & {
dynatrace?: {
queries: EntityQuery[];
};
};
type ExtendedEntity = Entity & {
metadata: ExtendedEntityMetadata;
};
export { type EntityQuery, type ExtendedEntity, type ExtendedEntityMetadata, type TabularData, type TabularDataCell, TabularDataFactory, type TabularDataRow, dynatraceCatalogQuerySchema };
export { TabularDataFactory } from './schema/tabularData.esm.js';
export { dynatraceCatalogQuerySchema } from './schema/dynatraceQueries.esm.js';
//# sourceMappingURL=index.esm.js.map

3

dist/schema/tabularData.esm.js

@@ -14,4 +14,3 @@ import _ from 'lodash';

const validate = (data) => {
if (data.length === 0)
return true;
if (data.length === 0) return true;
const keys = _.keys(data[0]);

@@ -18,0 +17,0 @@ return data.every((item) => _.isEqual(_.keys(item), keys));

@@ -5,3 +5,3 @@ {

"license": "Apache-2.0",
"version": "2.0.0",
"version": "2.1.1",
"main": "dist/index.cjs.js",

@@ -13,4 +13,3 @@ "types": "dist/index.d.ts",

"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"registry": "https://npm.pkg.github.com/"
"types": "dist/index.d.ts"
},

@@ -51,4 +50,4 @@ "repository": {

},
"gitHead": "ea2844b14455e8d0e1d022ecacc86731f7c97266",
"gitHead": "17badda789b825da28834d67ed8b1d7bd900a841",
"module": "dist/index.esm.js"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc