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

@td-design/pont-engine

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@td-design/pont-engine - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

lib/compatible/clean.d.ts

2

bin/init.js

@@ -5,2 +5,2 @@ #!/usr/bin/env node

require("../lib/cmd");
require("../lib/compatible/cmd");

@@ -1,6 +0,18 @@

export { Manager } from './manage';
export { BaseClass, Interface, Mod, PrimitiveType, Property, StandardDataSource, StandardDataType } from './standard';
export { Config, DataSourceConfig, createManager, format, getDuplicateById, getIdentifierFromOperatorId, getIdentifierFromUrl, getMaxSamePath, getTemplate, hasChinese, lookForFiles, toDashCase, toDashDefaultCase, toUpperFirstLetter, transformCamelCase, transformDescription, transformModsName, Surrounding } from './utils';
export { CodeGenerator, FileStructures, FilesManager } from './generators/generate';
export { diff, Model, removeCtx } from './diff';
export { PontDictManager } from './LocalDictManager';
/** new */
export { CONFIG_FILE } from './constants';
export { Surrounding } from './types/pontConfig';
export { getTemplate } from './utils/templateHelp';
export { PollingManage } from './utils/PollingManage';
export { DataSourceConfig } from './main/Config';
export { Manager } from './main/Manager';
export { Config } from './main/Config';
export { OriginManage } from './main/originManage';
export { Logger } from './main/Logger';
/** compatible */
export { createManager } from './compatible/Manager';
export { format, getDuplicateById, getIdentifierFromOperatorId, getIdentifierFromUrl, getMaxSamePath, hasChinese, lookForFiles, toDashCase, toDashDefaultCase, toUpperFirstLetter, transformCamelCase, transformDescription, transformModsName, getFileName } from './compatible/utils';
export { diff, Model, removeCtx } from './compatible/diff';
export { BaseClass, Interface, Mod, PrimitiveType, Property, StandardDataSource, StandardDataType } from './compatible/standard';
export { CodeGenerator, FileStructures, FilesManager } from './compatible/generators/generate';
/** deprecated */
export { PontDictManager } from './deprecated/LocalDictManager';
"use strict";
/** new */
Object.defineProperty(exports, "__esModule", { value: true });
var manage_1 = require("./manage");
Object.defineProperty(exports, "Manager", { enumerable: true, get: function () { return manage_1.Manager; } });
var standard_1 = require("./standard");
Object.defineProperty(exports, "BaseClass", { enumerable: true, get: function () { return standard_1.BaseClass; } });
Object.defineProperty(exports, "Interface", { enumerable: true, get: function () { return standard_1.Interface; } });
Object.defineProperty(exports, "Mod", { enumerable: true, get: function () { return standard_1.Mod; } });
Object.defineProperty(exports, "PrimitiveType", { enumerable: true, get: function () { return standard_1.PrimitiveType; } });
Object.defineProperty(exports, "Property", { enumerable: true, get: function () { return standard_1.Property; } });
Object.defineProperty(exports, "StandardDataSource", { enumerable: true, get: function () { return standard_1.StandardDataSource; } });
Object.defineProperty(exports, "StandardDataType", { enumerable: true, get: function () { return standard_1.StandardDataType; } });
var utils_1 = require("./utils");
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return utils_1.Config; } });
Object.defineProperty(exports, "DataSourceConfig", { enumerable: true, get: function () { return utils_1.DataSourceConfig; } });
Object.defineProperty(exports, "createManager", { enumerable: true, get: function () { return utils_1.createManager; } });
exports.PontDictManager = exports.FilesManager = exports.FileStructures = exports.CodeGenerator = exports.StandardDataType = exports.StandardDataSource = exports.Property = exports.PrimitiveType = exports.Mod = exports.Interface = exports.BaseClass = exports.removeCtx = exports.diff = exports.getFileName = exports.transformModsName = exports.transformDescription = exports.transformCamelCase = exports.toUpperFirstLetter = exports.toDashDefaultCase = exports.toDashCase = exports.lookForFiles = exports.hasChinese = exports.getMaxSamePath = exports.getIdentifierFromUrl = exports.getIdentifierFromOperatorId = exports.getDuplicateById = exports.format = exports.createManager = exports.Logger = exports.OriginManage = exports.Config = exports.Manager = exports.DataSourceConfig = exports.PollingManage = exports.getTemplate = exports.Surrounding = exports.CONFIG_FILE = void 0;
var constants_1 = require("./constants");
Object.defineProperty(exports, "CONFIG_FILE", { enumerable: true, get: function () { return constants_1.CONFIG_FILE; } });
var pontConfig_1 = require("./types/pontConfig");
Object.defineProperty(exports, "Surrounding", { enumerable: true, get: function () { return pontConfig_1.Surrounding; } });
var templateHelp_1 = require("./utils/templateHelp");
Object.defineProperty(exports, "getTemplate", { enumerable: true, get: function () { return templateHelp_1.getTemplate; } });
var PollingManage_1 = require("./utils/PollingManage");
Object.defineProperty(exports, "PollingManage", { enumerable: true, get: function () { return PollingManage_1.PollingManage; } });
var Config_1 = require("./main/Config");
Object.defineProperty(exports, "DataSourceConfig", { enumerable: true, get: function () { return Config_1.DataSourceConfig; } });
var Manager_1 = require("./main/Manager");
Object.defineProperty(exports, "Manager", { enumerable: true, get: function () { return Manager_1.Manager; } });
var Config_2 = require("./main/Config");
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return Config_2.Config; } });
var originManage_1 = require("./main/originManage");
Object.defineProperty(exports, "OriginManage", { enumerable: true, get: function () { return originManage_1.OriginManage; } });
var Logger_1 = require("./main/Logger");
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return Logger_1.Logger; } });
/** compatible */
var Manager_2 = require("./compatible/Manager");
Object.defineProperty(exports, "createManager", { enumerable: true, get: function () { return Manager_2.createManager; } });
var utils_1 = require("./compatible/utils");
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return utils_1.format; } });

@@ -22,3 +32,2 @@ Object.defineProperty(exports, "getDuplicateById", { enumerable: true, get: function () { return utils_1.getDuplicateById; } });

Object.defineProperty(exports, "getMaxSamePath", { enumerable: true, get: function () { return utils_1.getMaxSamePath; } });
Object.defineProperty(exports, "getTemplate", { enumerable: true, get: function () { return utils_1.getTemplate; } });
Object.defineProperty(exports, "hasChinese", { enumerable: true, get: function () { return utils_1.hasChinese; } });

@@ -32,12 +41,21 @@ Object.defineProperty(exports, "lookForFiles", { enumerable: true, get: function () { return utils_1.lookForFiles; } });

Object.defineProperty(exports, "transformModsName", { enumerable: true, get: function () { return utils_1.transformModsName; } });
Object.defineProperty(exports, "Surrounding", { enumerable: true, get: function () { return utils_1.Surrounding; } });
var generate_1 = require("./generators/generate");
Object.defineProperty(exports, "getFileName", { enumerable: true, get: function () { return utils_1.getFileName; } });
var diff_1 = require("./compatible/diff");
Object.defineProperty(exports, "diff", { enumerable: true, get: function () { return diff_1.diff; } });
Object.defineProperty(exports, "removeCtx", { enumerable: true, get: function () { return diff_1.removeCtx; } });
var standard_1 = require("./compatible/standard");
Object.defineProperty(exports, "BaseClass", { enumerable: true, get: function () { return standard_1.BaseClass; } });
Object.defineProperty(exports, "Interface", { enumerable: true, get: function () { return standard_1.Interface; } });
Object.defineProperty(exports, "Mod", { enumerable: true, get: function () { return standard_1.Mod; } });
Object.defineProperty(exports, "PrimitiveType", { enumerable: true, get: function () { return standard_1.PrimitiveType; } });
Object.defineProperty(exports, "Property", { enumerable: true, get: function () { return standard_1.Property; } });
Object.defineProperty(exports, "StandardDataSource", { enumerable: true, get: function () { return standard_1.StandardDataSource; } });
Object.defineProperty(exports, "StandardDataType", { enumerable: true, get: function () { return standard_1.StandardDataType; } });
var generate_1 = require("./compatible/generators/generate");
Object.defineProperty(exports, "CodeGenerator", { enumerable: true, get: function () { return generate_1.CodeGenerator; } });
Object.defineProperty(exports, "FileStructures", { enumerable: true, get: function () { return generate_1.FileStructures; } });
Object.defineProperty(exports, "FilesManager", { enumerable: true, get: function () { return generate_1.FilesManager; } });
var diff_1 = require("./diff");
Object.defineProperty(exports, "diff", { enumerable: true, get: function () { return diff_1.diff; } });
Object.defineProperty(exports, "removeCtx", { enumerable: true, get: function () { return diff_1.removeCtx; } });
var LocalDictManager_1 = require("./LocalDictManager");
/** deprecated */
var LocalDictManager_1 = require("./deprecated/LocalDictManager");
Object.defineProperty(exports, "PontDictManager", { enumerable: true, get: function () { return LocalDictManager_1.PontDictManager; } });
//# sourceMappingURL=index.js.map
{
"name": "@td-design/pont-engine",
"version": "1.0.3",
"version": "1.1.0",
"description": "pont swagger typescript API",

@@ -23,6 +23,6 @@ "main": "lib/index.js",

"lodash": "^4.17.5",
"node-fetch": "^1.7.3",
"prettier": "^1.19.1",
"node-fetch": "^2.6.7",
"prettier": "^2.4.1",
"translation.js": "^0.7.5",
"typescript": "^3.9.10"
"typescript": "^4.8.3"
},

@@ -46,7 +46,3 @@ "files": [

"author": "thundersdata-frontend",
"license": "MIT",
"publishConfig": {
"registry": "http://registry.npmjs.org/",
"access": "public"
}
"license": "MIT"
}

@@ -40,6 +40,7 @@ "use strict";

};
exports.SWRProvider = function (props) {
var SWRProvider = function (props) {
var children = props.children, options = __rest(props, ["children"]);
return React.createElement(swr_1.SWRConfig, { value: __assign(__assign({}, defaultOptions), options) }, props.children);
};
exports.SWRProvider = SWRProvider;
/**

@@ -58,3 +59,3 @@ * 基于 swr 的取数 hooks

var urlKey = getUrlKey(url, params, method);
var _a = swr_1.default(urlKey, fetcher, swrOptions), data = _a.data, error = _a.error, isValidating = _a.isValidating, mutate = _a.mutate;
var _a = (0, swr_1.default)(urlKey, fetcher, swrOptions), data = _a.data, error = _a.error, isValidating = _a.isValidating, mutate = _a.mutate;
return {

@@ -61,0 +62,0 @@ data: data,

@@ -64,3 +64,3 @@ "use strict";

.map(function (key) {
return params[key] === undefined ? '' : key + "=" + params[key];
return params[key] === undefined ? '' : "".concat(key, "=").concat(params[key]);
})

@@ -70,3 +70,3 @@ .filter(function (id) { return id; })

if (paramStr) {
return url + "?" + paramStr;
return "".concat(url, "?").concat(paramStr);
}

@@ -73,0 +73,0 @@ return url;

@@ -1,8 +0,19 @@

export { Manager } from './manage';
export { BaseClass, Interface, Mod, PrimitiveType, Property, StandardDataSource, StandardDataType } from './standard';
/** new */
export { CONFIG_FILE } from './constants';
export { Surrounding } from './types/pontConfig';
export { getTemplate } from './utils/templateHelp';
export { PollingManage } from './utils/PollingManage';
export { DataSourceConfig } from './main/Config';
export { Manager } from './main/Manager';
export { Config } from './main/Config';
export { OriginManage } from './main/originManage';
export { Logger } from './main/Logger';
/** compatible */
export { createManager } from './compatible/Manager';
export {
Config,
DataSourceConfig,
createManager,
format,

@@ -13,3 +24,2 @@ getDuplicateById,

getMaxSamePath,
getTemplate,
hasChinese,

@@ -23,6 +33,18 @@ lookForFiles,

transformModsName,
Surrounding
} from './utils';
export { CodeGenerator, FileStructures, FilesManager } from './generators/generate';
export { diff, Model, removeCtx } from './diff';
export { PontDictManager } from './LocalDictManager';
getFileName
} from './compatible/utils';
export { diff, Model, removeCtx } from './compatible/diff';
export {
BaseClass,
Interface,
Mod,
PrimitiveType,
Property,
StandardDataSource,
StandardDataType
} from './compatible/standard';
export { CodeGenerator, FileStructures, FilesManager } from './compatible/generators/generate';
/** deprecated */
export { PontDictManager } from './deprecated/LocalDictManager';

@@ -1,2 +0,2 @@

import { Interface, BaseClass, Property, CodeGenerator, Surrounding } from 'pont-engine';
import { Interface, BaseClass, Property, CodeGenerator, Surrounding } from '@td-design/pont-engine';

@@ -22,3 +22,3 @@ export default class MyGenerator extends CodeGenerator {

base.properties = base.properties.map(prop => {
base.properties = base.properties.map((prop) => {
return new Property({

@@ -25,0 +25,0 @@ ...prop,

@@ -1,2 +0,2 @@

import { Interface, BaseClass, Property, CodeGenerator } from 'pont-engine';
import { Interface, BaseClass, Property, CodeGenerator } from '@td-design/pont-engine';

@@ -38,3 +38,3 @@ export default class MyGenerator extends CodeGenerator {

base.properties = base.properties.map(prop => {
base.properties = base.properties.map((prop) => {
return new Property({

@@ -41,0 +41,0 @@ ...prop,

Sorry, the diff of this file is not supported yet

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