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

@forestadmin/datasource-toolkit

Package Overview
Dependencies
Maintainers
2
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forestadmin/datasource-toolkit - npm Package Compare versions

Comparing version 1.0.0-beta.24 to 1.0.0-beta.25

dist/src/decorators/hook/collection.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# @forestadmin/datasource-toolkit [1.0.0-beta.25](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-toolkit@1.0.0-beta.24...@forestadmin/datasource-toolkit@1.0.0-beta.25) (2022-06-15)
### Features
* add collection hooks ([#340](https://github.com/ForestAdmin/agent-nodejs/issues/340)) ([28adde9](https://github.com/ForestAdmin/agent-nodejs/commit/28adde93ca544862203777585388a43521beac4b))
# @forestadmin/datasource-toolkit [1.0.0-beta.24](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-toolkit@1.0.0-beta.23...@forestadmin/datasource-toolkit@1.0.0-beta.24) (2022-06-14)

@@ -2,0 +9,0 @@

3

dist/src/context/agent-context.d.ts

@@ -7,6 +7,7 @@ import { Caller } from '../interfaces/caller';

private realDataSource;
readonly caller: Caller;
private _caller;
get dataSource(): RelaxedDataSource<S>;
constructor(dataSource: DataSource, caller: Caller);
get caller(): Readonly<Caller>;
}
//# sourceMappingURL=agent-context.d.ts.map

@@ -10,9 +10,12 @@ "use strict";

this.realDataSource = dataSource;
this.caller = caller;
this._caller = caller;
}
get dataSource() {
return new datasource_1.default(this.realDataSource, this.caller);
return new datasource_1.default(this.realDataSource, this._caller);
}
get caller() {
return Object.freeze(this._caller);
}
}
exports.default = AgentCustomizationContext;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbnQtY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4u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UNGO0FBaEJELDRDQWdCQyJ9

@@ -21,2 +21,3 @@ export * from './errors';

export { default as SortEmulateCollectionDecorator } from './decorators/sort-emulate/collection';
export { default as HookCollectionDecorator } from './decorators/hook/collection';
export { Action as ActionDefinition } from './decorators/actions/types/actions';

@@ -30,2 +31,3 @@ export { ChartDefinition } from './decorators/chart/types';

export { WriteDefinition } from './decorators/write/types';
export { HookHandler, HookType, HookPosition, HooksContext } from './decorators/hook/types';
export { default as Aggregation } from './interfaces/query/aggregation';

@@ -32,0 +34,0 @@ export { default as ConditionTree } from './interfaces/query/condition-tree/nodes/base';

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.SchemaUtils = exports.RecordUtils = exports.CollectionUtils = exports.SortValidator = exports.RecordValidator = exports.ProjectionValidator = exports.FieldValidator = exports.ConditionTreeValidator = exports.SortFactory = exports.Sort = exports.ProjectionFactory = exports.Projection = exports.PaginatedFilter = exports.Page = exports.FilterFactory = exports.Filter = exports.ConditionTreeLeaf = exports.ConditionTreeFactory = exports.ConditionTreeBranch = exports.ConditionTree = exports.Aggregation = exports.SortEmulateCollectionDecorator = exports.SegmentCollectionDecorator = exports.SchemaCollectionDecorator = exports.WriteCollectionDecorator = exports.SearchCollectionDecorator = exports.RenameFieldCollectionDecorator = exports.PublicationCollectionDecorator = exports.OperatorsReplaceCollectionDecorator = exports.OperatorsEmulateCollectionDecorator = exports.RelationCollectionDecorator = exports.EmptyCollectionDecorator = exports.ComputedCollectionDecorator = exports.ActionCollectionDecorator = exports.ChartDataSourceDecorator = exports.DataSourceDecorator = exports.CollectionCustomizationContext = exports.BaseDataSource = exports.BaseCollection = void 0;
exports.SchemaUtils = exports.RecordUtils = exports.CollectionUtils = exports.SortValidator = exports.RecordValidator = exports.ProjectionValidator = exports.FieldValidator = exports.ConditionTreeValidator = exports.SortFactory = exports.Sort = exports.ProjectionFactory = exports.Projection = exports.PaginatedFilter = exports.Page = exports.FilterFactory = exports.Filter = exports.ConditionTreeLeaf = exports.ConditionTreeFactory = exports.ConditionTreeBranch = exports.ConditionTree = exports.Aggregation = exports.HookCollectionDecorator = exports.SortEmulateCollectionDecorator = exports.SegmentCollectionDecorator = exports.SchemaCollectionDecorator = exports.WriteCollectionDecorator = exports.SearchCollectionDecorator = exports.RenameFieldCollectionDecorator = exports.PublicationCollectionDecorator = exports.OperatorsReplaceCollectionDecorator = exports.OperatorsEmulateCollectionDecorator = exports.RelationCollectionDecorator = exports.EmptyCollectionDecorator = exports.ComputedCollectionDecorator = exports.ActionCollectionDecorator = exports.ChartDataSourceDecorator = exports.DataSourceDecorator = exports.CollectionCustomizationContext = exports.BaseDataSource = exports.BaseCollection = void 0;
// Misc

@@ -65,2 +65,4 @@ __exportStar(require("./errors"), exports);

Object.defineProperty(exports, "SortEmulateCollectionDecorator", { enumerable: true, get: function () { return __importDefault(collection_13).default; } });
var collection_14 = require("./decorators/hook/collection");
Object.defineProperty(exports, "HookCollectionDecorator", { enumerable: true, get: function () { return __importDefault(collection_14).default; } });
// Query Interface

@@ -118,4 +120,4 @@ var aggregation_1 = require("./interfaces/query/aggregation");

// Utils
var collection_14 = require("./utils/collection");
Object.defineProperty(exports, "CollectionUtils", { enumerable: true, get: function () { return __importDefault(collection_14).default; } });
var collection_15 = require("./utils/collection");
Object.defineProperty(exports, "CollectionUtils", { enumerable: true, get: function () { return __importDefault(collection_15).default; } });
var record_2 = require("./utils/record");

@@ -125,2 +127,2 @@ Object.defineProperty(exports, "RecordUtils", { enumerable: true, get: function () { return __importDefault(record_2).default; } });

Object.defineProperty(exports, "SchemaUtils", { enumerable: true, get: function () { return __importDefault(schema_1).default; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7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QUMvQywrRUFBNkQ7QUFDN0QsaUZBQStEO0FBQy9ELCtFQUE2RDtBQUU3RCxzRUFBb0Q7QUFDcEQsd0VBQXNEO0FBQ3RELDBEQUF3QztBQUN4QyxzREFBb0M7QUFDcEMsc0RBQW9DO0FBQ3BDLHlEQUF1QztBQUV2QyxhQUFhO0FBQ2IsOERBQWdGO0FBQXZFLHlJQUFBLE9BQU8sT0FBMEI7QUFDMUMsNENBQStEO0FBQXRELHdIQUFBLE9BQU8sT0FBa0I7QUFDbEMsc0RBQXlFO0FBQWhFLGtJQUFBLE9BQU8sT0FBdUI7QUFDdkMsOENBQWlFO0FBQXhELDBIQUFBLE9BQU8sT0FBbUI7QUFDbkMsMENBQTZEO0FBQXBELHNIQUFBLE9BQU8sT0FBaUI7QUFFakMsUUFBUTtBQUNSLGtEQUFnRTtBQUF2RCwrSEFBQSxPQUFPLE9BQW1CO0FBQ25DLHlDQUF3RDtBQUEvQyxzSEFBQSxPQUFPLE9BQWU7QUFDL0IseUNBQXdEO0FBQS9DLHNIQUFBLE9BQU8sT0FBZSJ9
{
"name": "@forestadmin/datasource-toolkit",
"version": "1.0.0-beta.24",
"version": "1.0.0-beta.25",
"main": "dist/src/index.js",

@@ -5,0 +5,0 @@ "license": "GPL-3.0",

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