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

kmore-types

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kmore-types - npm Package Compare versions

Comparing version 28.2.1 to 29.0.0

2

dist/index.d.ts

@@ -1,2 +0,2 @@

export * from './lib/index';
export * from './lib/index.js';
//# sourceMappingURL=index.d.ts.map

@@ -1,18 +0,2 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./lib/index"), exports);
export * from './lib/index.js';
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { DictTables, DictColumns, DictAlias, DictScoped, DictCamelAlias } from './types';
import { DictTables, DictColumns, DictAlias, DictScoped, DictCamelAlias } from './types.js';
export interface DbDict<D> {

@@ -41,2 +41,3 @@ /**

/**
* Keyof of Record prefix with table name as
* @returns

@@ -55,2 +56,3 @@ * ```ts

/**
* Keyof of Record prefix without table name as
* @returns

@@ -57,0 +59,0 @@ * ```ts

@@ -1,7 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.genDbDict = void 0;
/* eslint-disable node/no-unpublished-import */
// eslint-disable-next-line import/no-extraneous-dependencies
const shared_types_dev_1 = require("@waiting/shared-types-dev");
import { computeCallExpressionToLiteralObj } from '@waiting/shared-types-dev';
/**

@@ -12,8 +9,7 @@ * Transformer needle.

*/
function genDbDict() {
export function genDbDict() {
const needle = 'genDbDict';
const ret = (0, shared_types_dev_1.computeCallExpressionToLiteralObj)(needle);
const ret = computeCallExpressionToLiteralObj(needle);
return ret;
}
exports.genDbDict = genDbDict;
//# sourceMappingURL=dict.js.map

@@ -1,3 +0,3 @@

export * from './dict';
export * from './types';
export * from './dict.js';
export * from './types.js';
//# sourceMappingURL=index.d.ts.map

@@ -1,19 +0,3 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./dict"), exports);
__exportStar(require("./types"), exports);
export * from './dict.js';
export * from './types.js';
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { SnakeToCamel, SnakeToPascal } from '@waiting/shared-types';
import type { SnakeToCamel, SnakeToPascal } from '@waiting/shared-types';
/**

@@ -68,8 +68,32 @@ * kmore.tables, tables dict of the database

};
/**
* ```ts
* {
* uid: 'tb_user.uid'
* user_name: 'tb_user.user_name'
* }
* ```
*/
export declare type ScopedColumns<T, K extends string> = {
[F in keyof T]: `${K}.${F & string}`;
};
/**
* ```ts
* {
* uid: { tbUserUid: 'tb_user.uid' }
* user_name: { tbUserUserName: 'tb_user.user_name' }
* }
* ```
*/
export declare type AliasColumns<T, K extends string> = {
[F in keyof T]: Record<`${SnakeToCamel<K>}${SnakeToPascal<F & string>}`, `${K}.${F & string}`>;
};
/**
* ```ts
* {
* uid: { uid: 'tb_user.uid' }
* user_name: { userName: 'tb_user.user_name' }
* }
* ```
*/
export declare type CamelAliasColumns<T, K extends string> = {

@@ -76,0 +100,0 @@ [F in keyof T]: Record<`${SnakeToCamel<F & string>}`, `${K}.${F & string}`>;

@@ -1,3 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
//# sourceMappingURL=types.js.map
{
"name": "kmore-types",
"author": "waiting",
"version": "28.2.1",
"version": "29.0.0",
"description": "Retrieve types info from ts file",

@@ -12,6 +12,13 @@ "keywords": [

],
"type": "module",
"bin": {},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "src/index.ts",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
"bugs": {

@@ -27,8 +34,8 @@ "url": "https://github.com/waitingsong/kmore/issues"

"dependencies": {
"@waiting/shared-core": "^20.1.0",
"@waiting/shared-types": "^20.1.0"
"@waiting/shared-types-dev": "^11.2.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "13",
"@waiting/shared-types-dev": "^10.0.3",
"@waiting/shared-core": "^20.3.0",
"@waiting/shared-types": "^20.2.0",
"cross-env": "7",

@@ -55,3 +62,3 @@ "rollup-plugin-typescript2": "^0.32.0"

"clean:lock": "rm package-lock.json -f",
"cov": "cross-env TS_NODE_PROJECT=test/tsconfig.json c8 mocha --parallel=false",
"cov": "cross-env TS_NODE_PROJECT=test/tsconfig.json c8 mocha --loader=ts-node/esm --parallel=false",
"lint": "eslint --fix --cache {src,test}/**/*.ts",

@@ -61,8 +68,8 @@ "lint:nofix": "eslint --cache {src,test}/**/*.ts",

"rp": "rollup -c rollup.config.js --context this",
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json mocha",
"test:local": "cross-env TS_NODE_PROJECT=test/tsconfig.json ../../node_modules/.bin/mocha --parallel=false",
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json mocha --loader=ts-node/esm",
"test:local": "cross-env TS_NODE_PROJECT=test/tsconfig.json ../../node_modules/.bin/mocha --loader=ts-node/esm --parallel=false",
"tsc": "tsc -b ",
"tsc:w": "tsc -p tsconfig.json -w"
},
"gitHead": "1030af5ab519f46c7743c44416eaf588540dadb7"
"gitHead": "6131ec207318decc9e813ab88c84aacc1028d2af"
}
export * from './lib/index'
export * from './lib/index.js'

@@ -11,3 +11,3 @@ /* eslint-disable node/no-unpublished-import */

DictCamelAlias,
} from './types'
} from './types.js'

@@ -57,2 +57,3 @@

/**
* Keyof of Record prefix with table name as
* @returns

@@ -72,2 +73,3 @@ * ```ts

/**
* Keyof of Record prefix without table name as
* @returns

@@ -74,0 +76,0 @@ * ```ts

export * from './dict'
export * from './types'
export * from './dict.js'
export * from './types.js'

@@ -1,2 +0,2 @@

import { SnakeToCamel, SnakeToPascal } from '@waiting/shared-types'
import type { SnakeToCamel, SnakeToPascal } from '@waiting/shared-types'

@@ -75,8 +75,32 @@

}
/**
* ```ts
* {
* uid: 'tb_user.uid'
* user_name: 'tb_user.user_name'
* }
* ```
*/
export type ScopedColumns<T, K extends string> = {
[F in keyof T]: `${K}.${F & string}`
}
/**
* ```ts
* {
* uid: { tbUserUid: 'tb_user.uid' }
* user_name: { tbUserUserName: 'tb_user.user_name' }
* }
* ```
*/
export type AliasColumns<T, K extends string> = {
[F in keyof T]: Record<`${SnakeToCamel<K>}${SnakeToPascal<F & string>}`, `${K}.${F & string}`>
}
/**
* ```ts
* {
* uid: { uid: 'tb_user.uid' }
* user_name: { userName: 'tb_user.user_name' }
* }
* ```
*/
export type CamelAliasColumns<T, K extends string> = {

@@ -83,0 +107,0 @@ [F in keyof T]: Record<`${SnakeToCamel<F & string>}`, `${K}.${F & string}`>

@@ -13,3 +13,3 @@ {

"module": "NodeNext",
"moduleResolution": "Node",
"moduleResolution": "NodeNext",
"newLine": "lf",

@@ -16,0 +16,0 @@ "noFallthroughCasesInSwitch": true,

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

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

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