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

bf-lib

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bf-lib - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

13

module/Module.js

@@ -42,2 +42,11 @@ "use strict";

}
function baseSearch(api, domain, module, filters, options) {
return __awaiter(this, void 0, void 0, function* () {
const domainUri = common_1.domainToUri(domain);
const moduleUri = common_1.moduleToUri(module);
const uri = `${domainUri}/${moduleUri}/search`;
const response = yield api.put(uri, Object.assign(Object.assign({}, options), { filters }));
return response ? response : [];
});
}
function baseView(api, domain, module, id, data) {

@@ -61,2 +70,5 @@ const uri = entityUri(domain, module, 'view');

}
function search(filters, options) {
return baseSearch(api, entityDomain, entityModule, filters, options);
}
function view(id, data) {

@@ -69,2 +81,3 @@ return baseView(api, entityDomain, entityModule, id, data);

delete: del,
search,
view,

@@ -71,0 +84,0 @@ });

1

module/Types.d.ts

@@ -18,2 +18,3 @@ import { Domain, DomainModule, ICustomAttribute, ICustomAttributeAddedDTO, ICustomAttributeRemovedDTO, ICustomAttributeUpdatedDTO, IEntity, IModuleLink, ISearchFilter, ISODATE, ModuleProperty, UUID } from 'bf-types';

delete<U extends ObjectType>(id: UUID, data?: U): Promise<Nullable<T & IModuleLink>>;
search(filters: ISearchFilter[], options?: SearchOptions): Promise<T[]>;
view<U extends ObjectType>(id: UUID, data?: U): Promise<Nullable<IModuleLink>>;

@@ -20,0 +21,0 @@ }

8

package.json
{
"name": "bf-lib",
"version": "2.2.0",
"version": "2.3.0",
"private": false,

@@ -77,3 +77,3 @@ "description": "the standard client library for block-5 software",

"axios": "^0.19.2",
"bf-types": "^3.12.1",
"bf-types": "^3.16.3",
"decimal.js": "^10.2.0",

@@ -85,3 +85,3 @@ "socket.io-client": "^2.3.0",

"devDependencies": {
"@commitlint/cli": "^9.1.1",
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.1",

@@ -106,5 +106,5 @@ "@types/axios": "^0.14.0",

"ts-jest": "^26.1.3",
"tslint": "^6.1.2",
"tslint": "^6.1.3",
"typescript": "^3.9.7"
}
}
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