@deboxsoft/module-server
Advanced tools
Comparing version 1.5.19-8 to 1.5.19-9
@@ -6,3 +6,26 @@ 'use strict'; | ||
var moduleCore = require('@deboxsoft/module-core'); | ||
var _nanoid = require('nanoid'); | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) return e; | ||
var n = Object.create(null); | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
if (k !== 'default') { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
}); | ||
} | ||
}); | ||
} | ||
n['default'] = e; | ||
return Object.freeze(n); | ||
} | ||
var _nanoid__namespace = /*#__PURE__*/_interopNamespace(_nanoid); | ||
const tokenLogger = new moduleCore.Token("logger"); | ||
@@ -14,2 +37,4 @@ const registerLogger = (logger) => { | ||
const utils = {...moduleCore.utils, _nanoid: _nanoid__namespace}; | ||
Object.defineProperty(exports, 'Container', { | ||
@@ -27,9 +52,4 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'utils', { | ||
enumerable: true, | ||
get: function () { | ||
return moduleCore.utils; | ||
} | ||
}); | ||
exports.getLogger = getLogger; | ||
exports.registerLogger = registerLogger; | ||
exports.utils = utils; |
@@ -1,3 +0,4 @@ | ||
import { Token, Container } from '@deboxsoft/module-core'; | ||
export { Container, Token, utils } from '@deboxsoft/module-core'; | ||
import { Token, Container, utils as utils$1 } from '@deboxsoft/module-core'; | ||
export { Container, Token } from '@deboxsoft/module-core'; | ||
import * as _nanoid from 'nanoid'; | ||
@@ -10,2 +11,4 @@ const tokenLogger = new Token("logger"); | ||
export { getLogger, registerLogger }; | ||
const utils = {...utils$1, _nanoid}; | ||
export { getLogger, registerLogger, utils }; |
{ | ||
"name": "@deboxsoft/module-server", | ||
"version": "1.5.19-8", | ||
"version": "1.5.19-9", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -32,3 +32,5 @@ "maintainers": [ | ||
"lint:tsc": "yarn r:tsc --declaration false --noEmit", | ||
"publish:canary": "npm publish --tag canary", | ||
"publish:dev": "npm publish --tag canary", | ||
"release:dev": "yarn r:run-s build version:dev publish:dev", | ||
"version:dev": "yarn version prerelease", | ||
"test": "yarn r:jest --passWithNoTests" | ||
@@ -35,0 +37,0 @@ }, |
@@ -1,1 +0,30 @@ | ||
export { utils } from "@deboxsoft/module-core"; | ||
import * as _nanoid from "nanoid"; | ||
import { utils as _utils } from "@deboxsoft/module-core"; | ||
export declare const utils: { | ||
_nanoid: typeof _nanoid; | ||
camelCaseTransform(input: string, index: number): string; | ||
camelCaseTransformMerge(input: string, index: number): string; | ||
camelCase(input: string, options?: _utils.Options): string; | ||
capitalCaseTransform(input: string): string; | ||
capitalCase(input: string, options?: _utils.Options): string; | ||
constantCase(input: string, options?: _utils.Options): string; | ||
dotCase(input: string, options?: _utils.Options): string; | ||
headerCase(input: string, options?: _utils.Options): string; | ||
noCase(input: string, options?: _utils.Options): string; | ||
paramCase(input: string, options?: _utils.Options): string; | ||
pascalCaseTransform(input: string, index: number): string; | ||
pascalCaseTransformMerge(input: string): string; | ||
pascalCase(input: string, options?: _utils.Options): string; | ||
pathCase(input: string, options?: _utils.Options): string; | ||
sentenceCaseTransform(input: string, index: number): string; | ||
sentenceCase(input: string, options?: _utils.Options): string; | ||
snakeCase(input: string, options?: _utils.Options): string; | ||
isObject(val: any): boolean; | ||
isPlainObject(o: any): boolean; | ||
isString(value: any): boolean; | ||
pickBy(object: any): {}; | ||
debounce(func: Function, wait?: number, immediate?: boolean): () => void; | ||
clamp: (number: number, boundOne: number, boundTwo?: number) => number; | ||
pull(arr: any[], ...removeList: any): any[]; | ||
throttle(func: any, timeFrame: any): () => void; | ||
}; |
5978
102