New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@teambit/semantics.entities.semantic-schema

Package Overview
Dependencies
Maintainers
17
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teambit/semantics.entities.semantic-schema - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

dist/schemas/unresolved-schema.d.ts

4

api-schema.ts

@@ -12,2 +12,3 @@ import { Transform, plainToInstance } from 'class-transformer';

TypeSchema,
UnresolvedSchema,
VariableLikeSchema,

@@ -60,3 +61,4 @@ } from './schemas';

getSection(EnumSchema, 'Enums') +
getSection(TypeRefSchema, 'TypeReferences')
getSection(TypeRefSchema, 'TypeReferences') +
getSection(UnresolvedSchema, 'Unresolved')
);

@@ -63,0 +65,0 @@ }

@@ -37,3 +37,3 @@ import { plainToInstance, TransformationType, ClassConstructor } from 'class-transformer';

// for backward and forward compatibility, to not break the users, it's better to return an unknown schema than throwing.
return new UnknownSchema(obj.location || { file: '', line: 0, character: 0 }, obj.__schema, obj);
return new UnknownSchema(obj.location || { path: '', line: 0, character: 0 }, obj.__schema, obj);
}

@@ -40,0 +40,0 @@ return plainToInstance(SchemaClass, obj);

@@ -46,3 +46,4 @@ "use strict";

getSection(schemas_1.EnumSchema, 'Enums') +
getSection(schemas_1.TypeRefSchema, 'TypeReferences'));
getSection(schemas_1.TypeRefSchema, 'TypeReferences') +
getSection(schemas_1.UnresolvedSchema, 'Unresolved'));
}

@@ -49,0 +50,0 @@ listSignatures() {

@@ -51,3 +51,3 @@ "use strict";

// for backward and forward compatibility, to not break the users, it's better to return an unknown schema than throwing.
return new unknown_schema_1.UnknownSchema(obj.location || { file: '', line: 0, character: 0 }, obj.__schema, obj);
return new unknown_schema_1.UnknownSchema(obj.location || { path: '', line: 0, character: 0 }, obj.__schema, obj);
}

@@ -54,0 +54,0 @@ return (0, class_transformer_1.plainToInstance)(SchemaClass, obj);

@@ -16,5 +16,8 @@ import { DocSchema } from './schemas';

export declare type Location = {
file: string;
/**
* file-path relative to the component root-dir. normalized to Linux.
*/
filePath: string;
line: number;
character: number;
};

@@ -31,2 +31,3 @@ export { Module } from './module';

export { UnknownSchema } from './unknown-schema';
export { UnresolvedSchema } from './unresolved-schema';
export * from './docs';

@@ -13,3 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.UnknownSchema = exports.ThisTypeSchema = exports.TemplateLiteralTypeSpanSchema = exports.TemplateLiteralTypeSchema = exports.IndexedAccessSchema = exports.TypePredicateSchema = exports.ParenthesizedTypeSchema = exports.EnumSchema = exports.ParameterSchema = exports.TupleTypeSchema = exports.TypeOperatorSchema = exports.TypeArraySchema = exports.KeywordTypeSchema = exports.LiteralTypeSchema = exports.InferenceTypeSchema = exports.TypeQuerySchema = exports.SetAccessorSchema = exports.GetAccessorSchema = exports.InterfaceSchema = exports.IndexSignatureSchema = exports.TypeLiteralSchema = exports.TypeUnionSchema = exports.TypeIntersectionSchema = exports.TypeSchema = exports.ConstructorSchema = exports.ClassSchema = exports.VariableLikeSchema = exports.TypeRefSchema = exports.FunctionLikeSchema = exports.Module = void 0;
exports.UnresolvedSchema = exports.UnknownSchema = exports.ThisTypeSchema = exports.TemplateLiteralTypeSpanSchema = exports.TemplateLiteralTypeSchema = exports.IndexedAccessSchema = exports.TypePredicateSchema = exports.ParenthesizedTypeSchema = exports.EnumSchema = exports.ParameterSchema = exports.TupleTypeSchema = exports.TypeOperatorSchema = exports.TypeArraySchema = exports.KeywordTypeSchema = exports.LiteralTypeSchema = exports.InferenceTypeSchema = exports.TypeQuerySchema = exports.SetAccessorSchema = exports.GetAccessorSchema = exports.InterfaceSchema = exports.IndexSignatureSchema = exports.TypeLiteralSchema = exports.TypeUnionSchema = exports.TypeIntersectionSchema = exports.TypeSchema = exports.ConstructorSchema = exports.ClassSchema = exports.VariableLikeSchema = exports.TypeRefSchema = exports.FunctionLikeSchema = exports.Module = void 0;
var module_1 = require("./module");

@@ -75,3 +75,5 @@ Object.defineProperty(exports, "Module", { enumerable: true, get: function () { return module_1.Module; } });

Object.defineProperty(exports, "UnknownSchema", { enumerable: true, get: function () { return unknown_schema_1.UnknownSchema; } });
var unresolved_schema_1 = require("./unresolved-schema");
Object.defineProperty(exports, "UnresolvedSchema", { enumerable: true, get: function () { return unresolved_schema_1.UnresolvedSchema; } });
__exportStar(require("./docs"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@teambit/semantics.entities.semantic-schema",
"version": "0.0.19",
"version": "0.0.20",
"homepage": "https://bit.dev/teambit/semantics/entities/semantic-schema",

@@ -9,3 +9,3 @@ "main": "dist/index.js",

"name": "entities/semantic-schema",
"version": "0.0.19"
"version": "0.0.20"
},

@@ -12,0 +12,0 @@ "dependencies": {

@@ -22,2 +22,9 @@ import { instanceToPlain } from 'class-transformer';

export type Location = { file: string; line: number; character: number };
export type Location = {
/**
* file-path relative to the component root-dir. normalized to Linux.
*/
filePath: string;
line: number;
character: number;
};

@@ -31,2 +31,3 @@ export { Module } from './module';

export { UnknownSchema } from './unknown-schema';
export { UnresolvedSchema } from './unresolved-schema';
export * from './docs';

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