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

@jkcfg/std

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jkcfg/std - npm Package Compare versions

Comparing version 0.1.0 to 0.2.3

__std_generated.d.ts

29

package.json
{
"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';

@@ -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';
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