Updates
This commit is contained in:
parent
7ad6743353
commit
1c2798b93f
6
client/index.d.ts
vendored
6
client/index.d.ts
vendored
@ -33,6 +33,6 @@ import { fetchApi } from "./fetch";
|
||||
import clientFetch = require("./fetch");
|
||||
import serializeQuery = require("../package-shared/utils/serialize-query");
|
||||
import serializeCookies = require("../package-shared/utils/serialize-cookies");
|
||||
import { EJSON } from "../package-shared/utils";
|
||||
import { numberfy } from "../package-shared/utils";
|
||||
import { slugify } from "../package-shared/utils";
|
||||
import EJSON = require("../package-shared/utils/ejson");
|
||||
import numberfy = require("../package-shared/utils/numberfy");
|
||||
import slugify = require("../package-shared/utils/slugify");
|
||||
|
@ -13,9 +13,9 @@ const { fetchApi } = require("./fetch");
|
||||
const clientFetch = require("./fetch");
|
||||
const serializeQuery = require("../package-shared/utils/serialize-query");
|
||||
const serializeCookies = require("../package-shared/utils/serialize-cookies");
|
||||
const { EJSON } = require("../package-shared/utils");
|
||||
const { numberfy } = require("../package-shared/utils");
|
||||
const { slugify } = require("../package-shared/utils");
|
||||
const EJSON = require("../package-shared/utils/ejson");
|
||||
const numberfy = require("../package-shared/utils/numberfy");
|
||||
const slugify = require("../package-shared/utils/slugify");
|
||||
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
|
13
package-shared/utils/index.d.ts
vendored
13
package-shared/utils/index.d.ts
vendored
@ -1,13 +0,0 @@
|
||||
export const numberfy: (num: any, decimals?: number) => number;
|
||||
export const slugify: (str: string) => string;
|
||||
export const serializeCookies: typeof import("./serialize-cookies");
|
||||
export const serializeQuery: typeof import("./serialize-query");
|
||||
export const trimSql: typeof import("./trim-sql");
|
||||
export const EJSON: {
|
||||
parse: (string: string | null | number, reviver?: (this: any, key: string, value: any) => any) => {
|
||||
[x: string]: any;
|
||||
} | {
|
||||
[x: string]: any;
|
||||
}[] | undefined;
|
||||
stringify: (value: any, replacer?: ((this: any, key: string, value: any) => any) | null, space?: string | number) => string | undefined;
|
||||
};
|
@ -1,8 +0,0 @@
|
||||
// @ts-check
|
||||
|
||||
exports.numberfy = require("./numberfy");
|
||||
exports.slugify = require("./slugify");
|
||||
exports.serializeCookies = require("./serialize-cookies");
|
||||
exports.serializeQuery = require("./serialize-query");
|
||||
exports.trimSql = require("./trim-sql");
|
||||
exports.EJSON = require("./ejson");
|
@ -16,8 +16,8 @@ module.exports = function slugify(str) {
|
||||
.toLowerCase()
|
||||
.replace(/ {2,}/g, " ")
|
||||
.replace(/ /g, "-")
|
||||
.replace(/[^a-z0-9]/, "-")
|
||||
.replace(/-{2,}/, "-")
|
||||
.replace(/[^a-z0-9]/g, "-")
|
||||
.replace(/-{2,}/g, "-")
|
||||
.replace(/^-/, "")
|
||||
.replace(/-$/, "");
|
||||
} catch (/** @type {any} */ error) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "3.0.6",
|
||||
"version": "3.0.7",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user