@accordproject/concerto-util
Advanced tools
Comparing version 3.17.1-20240708200648 to 3.17.1-20240711045644
/*! | ||
* Concerto Util v3.17.1-20240708200648 | ||
* Concerto Util v3.17.1-20240711045644 | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -4,0 +4,0 @@ * you may not use this file except in compliance with the License. |
@@ -61,2 +61,5 @@ /* | ||
// Warning | ||
const Warning = require('./lib/warning'); | ||
module.exports = { | ||
@@ -79,3 +82,4 @@ BaseException, | ||
ErrorCodes, | ||
NullUtil | ||
NullUtil, | ||
Warning | ||
}; |
@@ -25,3 +25,10 @@ /* | ||
const TYPE_NOT_FOUND_EXCEPTION = 'TypeNotFoundException'; | ||
// deprecation warning type for process.emitWarning | ||
const DEPRECATION_WARNING = 'DeprecationWarning'; | ||
module.exports = {DEFAULT_BASE_EXCEPTION, DEFAULT_VALIDATOR_EXCEPTION, REGEX_VALIDATOR_EXCEPTION, TYPE_NOT_FOUND_EXCEPTION}; | ||
//deprecation codes | ||
const CONCERTO_DEPRECATION_001 = 'concerto-dep:001'; | ||
const CONCERTO_DEPRECATION_002 = 'concerto-dep:002'; | ||
module.exports = {DEFAULT_BASE_EXCEPTION, DEFAULT_VALIDATOR_EXCEPTION, REGEX_VALIDATOR_EXCEPTION, TYPE_NOT_FOUND_EXCEPTION, DEPRECATION_WARNING, CONCERTO_DEPRECATION_001, CONCERTO_DEPRECATION_002}; |
{ | ||
"name": "@accordproject/concerto-util", | ||
"version": "3.17.1-20240708200648", | ||
"version": "3.17.1-20240711045644", | ||
"description": "Utilities for Concerto Modeling Language", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/accordproject/concerto", |
@@ -18,2 +18,3 @@ import BaseException = require("./lib/baseexception"); | ||
import NullUtil = require("./lib/null"); | ||
export { BaseException, BaseFileException, FileDownloader, CompositeFileLoader, DefaultFileLoader, GitHubFileLoader, HTTPFileLoader, Writer, FileWriter, InMemoryWriter, ModelWriter, Logger, TypedStack, Label, Identifiers, ErrorCodes, NullUtil }; | ||
import Warning = require("./lib/warning"); | ||
export { BaseException, BaseFileException, FileDownloader, CompositeFileLoader, DefaultFileLoader, GitHubFileLoader, HTTPFileLoader, Writer, FileWriter, InMemoryWriter, ModelWriter, Logger, TypedStack, Label, Identifiers, ErrorCodes, NullUtil, Warning }; |
@@ -5,1 +5,4 @@ export const DEFAULT_BASE_EXCEPTION: "DefaultBaseException"; | ||
export const TYPE_NOT_FOUND_EXCEPTION: "TypeNotFoundException"; | ||
export const DEPRECATION_WARNING: "DeprecationWarning"; | ||
export const CONCERTO_DEPRECATION_001: "concerto-dep:001"; | ||
export const CONCERTO_DEPRECATION_002: "concerto-dep:002"; |
@@ -23,2 +23,4 @@ /* | ||
const emitWarningPollyfill = 'function(message, options){ console.warn({message: `DEPRECATED: ${message}`,type: options?.type,code: options?.code,detail: options?.detail});}'; | ||
module.exports = { | ||
@@ -48,3 +50,4 @@ entry: './index.js', | ||
'NODE_ENV': JSON.stringify('production') | ||
} | ||
}, | ||
'process.emitWarning': emitWarningPollyfill | ||
}), | ||
@@ -51,0 +54,0 @@ new webpack.ProvidePlugin({ |
Sorry, the diff of this file is too big to display
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
286913
44
1964