@cubicweb/client
Advanced tools
Comparing version 0.1.0 to 1.0.1
@@ -5,3 +5,3 @@ export declare class InconsistentSchemaError extends Error { | ||
export declare class RelationNotFoundError extends Error { | ||
constructor(entityType: string, role: "object" | "subject", relationType: string); | ||
constructor(relationType: string, role: "object" | "subject", entityType: string); | ||
} | ||
@@ -8,0 +8,0 @@ export declare class TransactionClosedError extends Error { |
@@ -12,3 +12,3 @@ "use strict"; | ||
class RelationNotFoundError extends Error { | ||
constructor(entityType, role, relationType) { | ||
constructor(relationType, role, entityType) { | ||
super(`Relation Not Found: relation type ${relationType} with entity type ${entityType} as ${role} is not declared`); | ||
@@ -15,0 +15,0 @@ Object.setPrototypeOf(this, new.target.prototype); |
@@ -5,3 +5,5 @@ export { getLooseSchema, Schema, EntitySchema, RelationDefinitionSchema, } from "./schema/Schema"; | ||
export { default as Client } from "./api/Client"; | ||
export { default as Api } from "./api/Api"; | ||
export { default as Transaction } from "./api/Transaction"; | ||
export { RQLQuery, RQLParams, RqlRow, ResultSet, ApiErrorResponse, } from "./api/Api"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Client = exports.RelationDefinitionSchema = exports.EntitySchema = exports.Schema = exports.getLooseSchema = void 0; | ||
exports.Transaction = exports.Api = exports.Client = exports.RelationDefinitionSchema = exports.EntitySchema = exports.Schema = exports.getLooseSchema = void 0; | ||
var Schema_1 = require("./schema/Schema"); | ||
@@ -31,2 +31,6 @@ Object.defineProperty(exports, "getLooseSchema", { enumerable: true, get: function () { return Schema_1.getLooseSchema; } }); | ||
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return __importDefault(Client_1).default; } }); | ||
var Api_1 = require("./api/Api"); | ||
Object.defineProperty(exports, "Api", { enumerable: true, get: function () { return __importDefault(Api_1).default; } }); | ||
var Transaction_1 = require("./api/Transaction"); | ||
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return __importDefault(Transaction_1).default; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -5,4 +5,4 @@ { | ||
"author": "Logilab", | ||
"version": "0.1.0", | ||
"license": "LGPL-2.1-or-later", | ||
"version": "1.0.1", | ||
"license": "LGPL-3.0-or-later", | ||
"main": "lib/index.js", | ||
@@ -21,3 +21,7 @@ "types": "lib/index.d.ts", | ||
"js" | ||
], | ||
"files": [ | ||
"lib/**", | ||
"src/**" | ||
] | ||
} |
@@ -10,5 +10,5 @@ export class InconsistentSchemaError extends Error { | ||
constructor( | ||
entityType: string, | ||
relationType: string, | ||
role: "object" | "subject", | ||
relationType: string | ||
entityType: string | ||
) { | ||
@@ -15,0 +15,0 @@ super( |
@@ -10,2 +10,4 @@ export { | ||
export { default as Client } from "./api/Client"; | ||
export { default as Api } from "./api/Api"; | ||
export { default as Transaction } from "./api/Transaction"; | ||
export { | ||
@@ -12,0 +14,0 @@ RQLQuery, |
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
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
2
1952
1
91510
37
2
0
6