@jkcfg/std
Advanced tools
Comparing version 0.1.0 to 0.2.3
{ | ||
"name": "@jkcfg/std", | ||
"version": "0.1.0", | ||
"version": "0.2.3", | ||
"description": "jk standard library", | ||
"main": "std.js", | ||
"types": "std.d.ts", | ||
"scripts": { | ||
"build": "tsc" | ||
"lint": "eslint std*.js *.test.js && eslint -c .eslintrc.ts std*.ts", | ||
"build": "tsc", | ||
"test": "jest" | ||
}, | ||
@@ -26,5 +27,25 @@ "repository": { | ||
"devDependencies": { | ||
"typescript": "^3.2.2" | ||
"@typescript-eslint/eslint-plugin": "^1.7.0", | ||
"babel-jest": "^23.6.0", | ||
"babel-preset-env": "^1.7.0", | ||
"eslint": "^5.12.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.17.2", | ||
"eslint-plugin-jest": "^22.4.1", | ||
"jest": "^23.6.0", | ||
"to-fast-properties": "^2.0.0", | ||
"ts-jest": "^23.10.5", | ||
"typescript": "^3.4.3" | ||
}, | ||
"jest": { | ||
"preset": "ts-jest/presets/js-with-babel", | ||
"globals": {}, | ||
"testMatch": [ | ||
"<rootDir>/*.test.js" | ||
], | ||
"moduleDirectories": [ | ||
"<rootDir>/node_modules" | ||
] | ||
}, | ||
"dependencies": {} | ||
} |
45
std.d.ts
@@ -1,23 +0,5 @@ | ||
declare function log(value: any): void; | ||
declare enum Format { | ||
JSON = 1, | ||
YAML = 2, | ||
Raw = 3 | ||
} | ||
interface WriteOptions { | ||
format?: Format; | ||
indent?: number; | ||
override?: boolean; | ||
} | ||
declare function write(value: any, path: string, options?: WriteOptions): void; | ||
declare enum Encoding { | ||
Bytes = 0, | ||
String = 1, | ||
JSON = 2 | ||
} | ||
interface ReadOptions { | ||
format: Format; | ||
encoding: Encoding; | ||
} | ||
declare function read(path: string, options?: ReadOptions): Promise<any>; | ||
import { log } from './std_log'; | ||
import { Format, write } from './std_write'; | ||
import { Encoding, read } from './std_read'; | ||
import { info, dir } from './std_fs'; | ||
declare const _default: { | ||
@@ -27,4 +9,23 @@ log: typeof log; | ||
write: typeof write; | ||
Encoding: typeof Encoding; | ||
read: typeof read; | ||
info: typeof info; | ||
dir: typeof dir; | ||
param: { | ||
all: typeof import("./std_param").all; | ||
Boolean: typeof import("./std_param").Boolean; | ||
Number: typeof import("./std_param").Number; | ||
String: typeof import("./std_param").String; | ||
Object: typeof import("./std_param").Object; | ||
}; | ||
mix: any; | ||
patch: any; | ||
merge: any; | ||
}; | ||
export default _default; | ||
export { log } from './std_log'; | ||
export { Format, write } from './std_write'; | ||
export { Encoding, read } from './std_read'; | ||
export { info, dir } from './std_fs'; | ||
export { param } from './std_param'; | ||
export { mix, patch, merge } from './std_merge'; |
43
std.js
@@ -1,21 +0,26 @@ | ||
function log(value) { } | ||
; | ||
var Format; | ||
(function (Format) { | ||
Format[Format["JSON"] = 1] = "JSON"; | ||
Format[Format["YAML"] = 2] = "YAML"; | ||
Format[Format["Raw"] = 3] = "Raw"; | ||
})(Format || (Format = {})); | ||
function write(value, path, options) { } | ||
; | ||
var Encoding; | ||
(function (Encoding) { | ||
Encoding[Encoding["Bytes"] = 0] = "Bytes"; | ||
Encoding[Encoding["String"] = 1] = "String"; | ||
Encoding[Encoding["JSON"] = 2] = "JSON"; | ||
})(Encoding || (Encoding = {})); | ||
function read(path, options) { return Promise.resolve({}); } | ||
; | ||
import { log } from './std_log'; | ||
import { Format, write } from './std_write'; | ||
import { Encoding, read } from './std_read'; | ||
import { info, dir } from './std_fs'; | ||
import { param } from './std_param'; | ||
import { mix, patch, merge } from './std_merge'; | ||
// The default export is deprecated and will be removed in 3.0.0. | ||
export default { | ||
log, Format, write, read, | ||
log, | ||
Format, | ||
write, | ||
Encoding, | ||
read, | ||
info, | ||
dir, | ||
param, | ||
mix, | ||
patch, | ||
merge, | ||
}; | ||
export { log } from './std_log'; | ||
export { Format, write } from './std_write'; | ||
export { Encoding, read } from './std_read'; | ||
export { info, dir } from './std_fs'; | ||
export { param } from './std_param'; | ||
export { mix, patch, merge } from './std_merge'; |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
162426
23
4646
0
128
11
1