@unimodules/core
Advanced tools
Comparing version 2.0.1 to 3.0.0-rc.0
import compareVersions from 'compare-versions'; | ||
import CodedError from './CodedError'; | ||
import { CodedError } from '@unimodules/react-native-adapter'; | ||
const postedWarnings = {}; | ||
@@ -4,0 +4,0 @@ /** |
export * from './AdapterProxy'; | ||
export * from './Errors'; | ||
export { default as deprecate } from './deprecate'; |
export * from './AdapterProxy'; | ||
export * from './Errors'; | ||
export { default as deprecate } from './deprecate'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@unimodules/core", | ||
"version": "2.0.1", | ||
"version": "3.0.0-rc.0", | ||
"description": "Universal modules core", | ||
@@ -38,3 +38,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "f213c9be2a909dae42a0a27d8aa4b9eac8e97be1" | ||
} | ||
"gitHead": "6334f82adccb529e9347e348c874bd8f6a92cacc" | ||
} |
@@ -1,2 +0,2 @@ | ||
import * as Errors from '../Errors'; | ||
import { CodedError, deprecate } from '@unimodules/core'; | ||
@@ -16,3 +16,3 @@ const packageName = '@unimodules/core'; | ||
Errors.deprecate(packageName, 'foo', { | ||
deprecate(packageName, 'foo', { | ||
replacement: 'bar', | ||
@@ -30,3 +30,3 @@ currentVersion: '1.0.0', | ||
Errors.deprecate(packageName, 'foo', { | ||
deprecate(packageName, 'foo', { | ||
currentVersion: '1.0.0', | ||
@@ -43,3 +43,3 @@ versionToRemove: '2.0.0', | ||
it(`throws a deprecation error without expiration`, async () => { | ||
expect(() => Errors.deprecate(packageName, 'foo')).toThrowErrorMatchingSnapshot(); | ||
expect(() => deprecate(packageName, 'foo')).toThrowErrorMatchingSnapshot(); | ||
}); | ||
@@ -49,3 +49,3 @@ | ||
expect(() => | ||
Errors.deprecate(packageName, 'foo', { replacement: 'bar' }) | ||
deprecate(packageName, 'foo', { replacement: 'bar' }) | ||
).toThrowErrorMatchingSnapshot(); | ||
@@ -56,3 +56,3 @@ }); | ||
expect(() => | ||
Errors.deprecate(packageName, 'foo', { | ||
deprecate(packageName, 'foo', { | ||
replacement: 'bar', | ||
@@ -67,3 +67,3 @@ currentVersion: '2.0.0', | ||
expect(() => | ||
Errors.deprecate(packageName, 'foo', { | ||
deprecate(packageName, 'foo', { | ||
currentVersion: '2.0.0', | ||
@@ -79,3 +79,3 @@ versionToRemove: '1.0.0', | ||
const error = await getErrorAsync(() => { | ||
Errors.deprecate(library, 'foo'); | ||
deprecate(library, 'foo'); | ||
}); | ||
@@ -89,3 +89,3 @@ expect(error).toBeDefined(); | ||
function getErrorAsync(runnable): Promise<Errors.CodedError | null> { | ||
function getErrorAsync(runnable): Promise<CodedError | null> { | ||
return new Promise(async resolve => { | ||
@@ -92,0 +92,0 @@ try { |
import compareVersions from 'compare-versions'; | ||
import CodedError from './CodedError'; | ||
import { CodedError } from '@unimodules/react-native-adapter'; | ||
@@ -4,0 +4,0 @@ const postedWarnings: { [key: string]: boolean } = {}; |
@@ -1,3 +0,2 @@ | ||
export * from './AdapterProxy'; | ||
export * from './Errors'; | ||
export { default as deprecate } from './deprecate'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
117499
88
221
1