@accordproject/concerto-util
Advanced tools
Comparing version 2.0.0-20220325135454 to 2.0.0-20220325140017
42
index.js
@@ -25,26 +25,42 @@ /* | ||
// Exceptions | ||
module.exports.BaseException = require('./lib/baseexception'); | ||
module.exports.BaseFileException = require('./lib/basefileexception'); | ||
const BaseException = require('./lib/baseexception'); | ||
const BaseFileException = require('./lib/basefileexception'); | ||
// Transitive closure downloader | ||
module.exports.FileDownloader = require('./lib/filedownloader'); | ||
const FileDownloader = require('./lib/filedownloader'); | ||
// File Loaders | ||
module.exports.CompositeFileLoader = require('./lib/loaders/compositefileloader'); | ||
module.exports.DefaultFileLoader = require('./lib/loaders/defaultfileloader'); | ||
module.exports.GitHubFileLoader = require('./lib/loaders/githubfileloader'); | ||
module.exports.HTTPFileLoader = require('./lib/loaders/httpfileloader'); | ||
const CompositeFileLoader = require('./lib/loaders/compositefileloader'); | ||
const DefaultFileLoader = require('./lib/loaders/defaultfileloader'); | ||
const GitHubFileLoader = require('./lib/loaders/githubfileloader'); | ||
const HTTPFileLoader = require('./lib/loaders/httpfileloader'); | ||
// Writers | ||
module.exports.Writer = require('./lib/writer'); | ||
module.exports.FileWriter = require('./lib/filewriter'); | ||
module.exports.ModelWriter = require('./lib/modelwriter'); | ||
const Writer = require('./lib/writer'); | ||
const FileWriter = require('./lib/filewriter'); | ||
const ModelWriter = require('./lib/modelwriter'); | ||
// Logger | ||
module.exports.Logger = require('./lib/logger'); | ||
const Logger = require('./lib/logger'); | ||
// TypedStack | ||
module.exports.TypedStack = require('./lib/typedstack'); | ||
const TypedStack = require('./lib/typedstack'); | ||
// Label | ||
module.exports.Label = require('./lib/label'); | ||
const Label = require('./lib/label'); | ||
module.exports = { | ||
BaseException, | ||
BaseFileException, | ||
FileDownloader, | ||
CompositeFileLoader, | ||
DefaultFileLoader, | ||
GitHubFileLoader, | ||
HTTPFileLoader, | ||
Writer, | ||
FileWriter, | ||
ModelWriter, | ||
Logger, | ||
TypedStack, | ||
Label | ||
}; |
@@ -75,3 +75,3 @@ /* | ||
* Writes text to the current open file | ||
* @param {int} tabs - the number of tabs to use | ||
* @param {number} tabs - the number of tabs to use | ||
* @param {string} text - the text to write | ||
@@ -89,3 +89,3 @@ */ | ||
* Writes text to the start of the current open file | ||
* @param {int} tabs - the number of tabs to use | ||
* @param {number} tabs - the number of tabs to use | ||
* @param {string} text - the text to write | ||
@@ -92,0 +92,0 @@ */ |
{ | ||
"name": "@accordproject/concerto-util", | ||
"version": "2.0.0-20220325135454", | ||
"version": "2.0.0-20220325140017", | ||
"description": "Utilities for Concerto Modeling Language", | ||
@@ -19,2 +19,3 @@ "homepage": "https://github.com/accordproject/concerto", | ||
"doc": "jsdoc --pedantic --recurse -c jsdoc.json", | ||
"postdoc": "npm run build:types", | ||
"test": "nyc mocha --recursive -t 10000", | ||
@@ -24,3 +25,3 @@ "test:watch": "nyc mocha --watch --recursive -t 10000", | ||
"nyc": "nyc mocha --recursive -t 10000", | ||
"build:types": "npx -p typescript tsc ./lib/**/*.js index.js --declaration --allowJs --emitDeclarationOnly --outDir types" | ||
"build:types": "tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types" | ||
}, | ||
@@ -49,3 +50,4 @@ "repository": { | ||
"nyc": "15.1.0", | ||
"tmp-promise": "3.0.2" | ||
"tmp-promise": "3.0.2", | ||
"typescript": "4.6.3" | ||
}, | ||
@@ -52,0 +54,0 @@ "dependencies": { |
@@ -1,8 +0,14 @@ | ||
export var FileDownloader: typeof import("./lib/filedownloader"); | ||
export var CompositeFileLoader: typeof import("./lib/loaders/compositefileloader"); | ||
export var DefaultFileLoader: typeof import("./lib/loaders/defaultfileloader"); | ||
export var GitHubFileLoader: typeof import("./lib/loaders/githubfileloader"); | ||
export var HTTPFileLoader: typeof import("./lib/loaders/httpfileloader"); | ||
export var Writer: typeof import("./lib/writer"); | ||
export var Logger: typeof import("./lib/logger"); | ||
export var TypedStack: typeof import("./lib/typedstack"); | ||
import BaseException = require("./lib/baseexception"); | ||
import BaseFileException = require("./lib/basefileexception"); | ||
import FileDownloader = require("./lib/filedownloader"); | ||
import CompositeFileLoader = require("./lib/loaders/compositefileloader"); | ||
import DefaultFileLoader = require("./lib/loaders/defaultfileloader"); | ||
import GitHubFileLoader = require("./lib/loaders/githubfileloader"); | ||
import HTTPFileLoader = require("./lib/loaders/httpfileloader"); | ||
import Writer = require("./lib/writer"); | ||
import FileWriter = require("./lib/filewriter"); | ||
import ModelWriter = require("./lib/modelwriter"); | ||
import Logger = require("./lib/logger"); | ||
import TypedStack = require("./lib/typedstack"); | ||
import Label = require("./lib/label"); | ||
export { BaseException, BaseFileException, FileDownloader, CompositeFileLoader, DefaultFileLoader, GitHubFileLoader, HTTPFileLoader, Writer, FileWriter, ModelWriter, Logger, TypedStack, Label }; |
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
61839
32
1564
11