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

pbkit

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pbkit - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

codegen/ts/index.mjs

2

core/misc/array.d.ts

@@ -5,1 +5,3 @@ export declare type PojoSet<T extends string | number> = {

export declare function toPojoSet<T extends string | number>(arr: readonly T[]): PojoSet<T>;
export declare function removeItem<T>(arr: T[], item: T): T[];
export declare function groupBy<T, U extends keyof T>(arr: T[], by: U): Map<T[U], T[]>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toPojoSet = void 0;
exports.groupBy = exports.removeItem = exports.toPojoSet = void 0;
function toPojoSet(arr) {

@@ -11,1 +11,19 @@ const result = {};

exports.toPojoSet = toPojoSet;
function removeItem(arr, item) {
const index = arr.indexOf(item);
arr.splice(index, 1);
return arr;
}
exports.removeItem = removeItem;
function groupBy(arr, by) {
const result = new Map();
for (const item of arr) {
const key = item[by];
if (result.has(key))
result.get(key).push(item);
else
result.set(key, [item]);
}
return result;
}
exports.groupBy = groupBy;
{
"name": "pbkit",
"version": "0.0.17",
"version": "0.0.18",
"author": "JongChan Choi <jong@chan.moe>",

@@ -8,4 +8,13 @@ "license": "(MIT OR Apache-2.0)",

"type": "git",
"url": "git+https://github.com/riiid/pbkit.git"
"url": "git+https://github.com/pbkit/pbkit.git"
},
"bin": {
"pb-gen-ts": "node/cli/pb-gen-ts.js"
},
"preferUnplugged": true,
"dependencies": {
"@yarnpkg/fslib": "^2.6.0-rc.8",
"@yarnpkg/libzip": "^2.2.2",
"mri": "^1.2.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