Comparing version 1.1.7 to 1.1.8
@@ -1,4 +0,4 @@ | ||
import { IAdapter } from "../adapter.d"; | ||
import { IAdapter } from "../../types/adapter"; | ||
export declare const adapters: IAdapter[]; | ||
export declare function getAdapter(typeName: string): IAdapter<any>; | ||
export declare function getMatchAdapter(filename: string): IAdapter<any>; |
/// <reference types="node" /> | ||
import * as fs from "fs"; | ||
import { IReadFileOptions, IReadOptions } from "./options.d"; | ||
import { IReadFileOptions, IReadOptions } from "../types/options"; | ||
import { WriteConfig } from "./WriteConfig"; | ||
@@ -5,0 +5,0 @@ export declare const read: <T = any>(data: string, encodingOrOptions: string | IReadOptions) => WriteConfig<T>; |
@@ -1,2 +0,2 @@ | ||
import { IWriteOptions } from "./options.d"; | ||
import { IWriteOptions } from "../types/options.d"; | ||
export declare class WriteConfig<T> { | ||
@@ -3,0 +3,0 @@ private obj; |
import { readdirSync } from "fs"; | ||
import { resolve } from "path"; | ||
import { IAdapter } from "../adapter.d"; | ||
import { IAdapter } from "../../types/adapter"; | ||
@@ -5,0 +5,0 @@ export const adapters: IAdapter[] = readdirSync(__dirname) |
import * as fs from "fs"; | ||
import * as path from "path"; | ||
import { IAdapter } from "./adapter.d"; | ||
import { IAdapter } from "../types/adapter"; | ||
import { IReadFileOptions, IReadOptions } from "../types/options"; | ||
import { getAdapter, getMatchAdapter } from "./adapters"; | ||
import { IReadFileOptions, IReadOptions } from "./options.d"; | ||
import { WriteConfig } from "./WriteConfig"; | ||
@@ -7,0 +7,0 @@ |
import * as fs from "fs"; | ||
import makeDir = require("make-dir"); | ||
import * as path from "path"; | ||
import { IAdapter } from "./adapter.d"; | ||
import { IAdapter } from "../types/adapter"; | ||
import { IWriteOptions } from "../types/options.d"; | ||
import { getAdapter } from "./adapters"; | ||
import { IWriteOptions } from "./options.d"; | ||
@@ -8,0 +8,0 @@ export class WriteConfig<T> { |
{ | ||
"name": "ftconfig", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "F*ck the config", | ||
"main": "dist/index.js", | ||
"types": "lib/index.ts", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"clean": "rimraf dist/*", | ||
"tsc": "tsc --locale zh-cn --pretty", | ||
@@ -39,3 +39,4 @@ "build": "npm run tsc -- -P tsconfig.json", | ||
"dist", | ||
"lib" | ||
"lib", | ||
"types" | ||
], | ||
@@ -42,0 +43,0 @@ "author": "AryloYeung <arylo.open@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
24794
0