@deboxsoft/module-server
Advanced tools
Comparing version 1.5.4 to 1.5.6
@@ -7,4 +7,26 @@ 'use strict'; | ||
var moduleCore = require('@deboxsoft/module-core'); | ||
var utils_cjs = require('@deboxsoft/module-core/utils.cjs'); | ||
var utilsCore = require('@deboxsoft/module-core/utils.cjs'); | ||
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 utilsCore__namespace = /*#__PURE__*/_interopNamespace(utilsCore); | ||
function encodeBase64(i) { | ||
@@ -25,5 +47,3 @@ return Buffer.from(i, "utf8").toString("base64"); | ||
...converter, | ||
generateId: utils_cjs.generateId, | ||
isObject: utils_cjs.isObject, | ||
isPlainObject: utils_cjs.isPlainObject | ||
...utilsCore__namespace | ||
}; | ||
@@ -37,32 +57,18 @@ | ||
Object.defineProperty(exports, 'Container', { | ||
enumerable: true, | ||
get: function () { | ||
return typedi.Container; | ||
} | ||
Object.keys(typedi).forEach(function (k) { | ||
if (k !== 'default') Object.defineProperty(exports, k, { | ||
enumerable: true, | ||
get: function () { | ||
return typedi[k]; | ||
} | ||
}); | ||
}); | ||
Object.defineProperty(exports, 'ContainerInstance', { | ||
enumerable: true, | ||
get: function () { | ||
return typedi.ContainerInstance; | ||
} | ||
Object.keys(moduleCore).forEach(function (k) { | ||
if (k !== 'default') Object.defineProperty(exports, k, { | ||
enumerable: true, | ||
get: function () { | ||
return moduleCore[k]; | ||
} | ||
}); | ||
}); | ||
Object.defineProperty(exports, 'Token', { | ||
enumerable: true, | ||
get: function () { | ||
return typedi.Token; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'Logger', { | ||
enumerable: true, | ||
get: function () { | ||
return moduleCore.Logger; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'gql', { | ||
enumerable: true, | ||
get: function () { | ||
return moduleCore.gql; | ||
} | ||
}); | ||
exports.getLogger = getLogger; | ||
@@ -69,0 +75,0 @@ exports.registerLogger = registerLogger; |
import { Token } from 'typedi'; | ||
export { Container, ContainerInstance, Token } from 'typedi'; | ||
export * from 'typedi'; | ||
import { Logger } from '@deboxsoft/module-core'; | ||
export { Logger, gql } from '@deboxsoft/module-core'; | ||
export * from '@deboxsoft/module-core'; | ||
import { debounce, isObject, isPlainObject, isString, pickBy, pull, throttle, Options } from '@deboxsoft/module-core/utils.cjs'; | ||
declare const utils: { | ||
generateId: any; | ||
isObject: any; | ||
isPlainObject: any; | ||
clamp: (number: number, boundOne: number, boundTwo?: number | undefined) => number; | ||
debounce: typeof debounce; | ||
generateId: (size?: number | undefined) => string; | ||
isEmpty: (obj: any) => boolean; | ||
isObject: typeof isObject; | ||
isPlainObject: typeof isPlainObject; | ||
isString: typeof isString; | ||
pickBy: typeof pickBy; | ||
pull: typeof pull; | ||
throttle: typeof throttle; | ||
camelCaseTransform(input: string, index: number): string; | ||
camelCaseTransformMerge(input: string, index: number): string; | ||
camelCase(input: string, options?: Options | undefined): string; | ||
capitalCaseTransform(input: string): string; | ||
capitalCase(input: string, options?: Options | undefined): string; | ||
constantCase(input: string, options?: Options | undefined): string; | ||
dotCase(input: string, options?: Options | undefined): string; | ||
headerCase(input: string, options?: Options | undefined): string; | ||
noCase(input: string, options?: Options | undefined): string; | ||
paramCase(input: string, options?: Options | undefined): string; | ||
pascalCaseTransform(input: string, index: number): string; | ||
pascalCaseTransformMerge(input: string): string; | ||
pascalCase(input: string, options?: Options | undefined): string; | ||
pathCase(input: string, options?: Options | undefined): string; | ||
sentenceCaseTransform(input: string, index: number): string; | ||
sentenceCase(input: string, options?: Options | undefined): string; | ||
snakeCase(input: string, options?: Options | undefined): string; | ||
encodeBase64(i: string): string; | ||
@@ -11,0 +36,0 @@ decodeBase64(i: string): string; |
10
index.js
import { Token, Container } from 'typedi'; | ||
export { Container, ContainerInstance, Token } from 'typedi'; | ||
export { Logger, gql } from '@deboxsoft/module-core'; | ||
import { generateId, isObject, isPlainObject } from '@deboxsoft/module-core/utils.cjs'; | ||
export * from 'typedi'; | ||
export * from '@deboxsoft/module-core'; | ||
import * as utilsCore from '@deboxsoft/module-core/utils.cjs'; | ||
@@ -21,5 +21,3 @@ function encodeBase64(i) { | ||
...converter, | ||
generateId, | ||
isObject, | ||
isPlainObject | ||
...utilsCore | ||
}; | ||
@@ -26,0 +24,0 @@ |
{ | ||
"name": "@deboxsoft/module-server", | ||
"version": "1.5.4", | ||
"version": "1.5.6", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -31,3 +31,3 @@ "maintainers": [ | ||
"dependencies": { | ||
"@deboxsoft/module-core": "^1.5.4", | ||
"@deboxsoft/module-core": "^1.5.6", | ||
"nconf": "0.11.0", | ||
@@ -43,3 +43,3 @@ "typedi": "^0.8.0" | ||
}, | ||
"gitHead": "416bd9a2eac900df146a8487ecf518c134010ec8" | ||
"gitHead": "3236c9d25957887c5866c9ff12ebf9328af3caec" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14390
11
149
0