amplify-util-headless-input
Advanced tools
Comparing version 1.9.9 to 1.9.10-rc.4affb9331.0
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.9.10-rc.4affb9331.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-headless-input@1.9.9...amplify-util-headless-input@1.9.10-rc.4affb9331.0) (2023-02-06) | ||
**Note:** Version bump only for package amplify-util-headless-input | ||
## [1.9.9](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-headless-input@1.9.8...amplify-util-headless-input@1.9.9) (2023-02-02) | ||
@@ -8,0 +16,0 @@ |
@@ -10,7 +10,7 @@ import { JSONSchema7 } from 'json-schema'; | ||
} | ||
export declare type VersionedSchemaSupplier = (version: number) => Promise<{ | ||
export type VersionedSchemaSupplier = (version: number) => Promise<{ | ||
readonly rootSchema: JSONSchema7; | ||
readonly dependencySchemas?: JSONSchema7[]; | ||
} | void>; | ||
export declare type VersionUpgradePipeline = (version: number) => ((...args: unknown[]) => unknown)[]; | ||
export type VersionUpgradePipeline = (version: number) => ((...args: unknown[]) => unknown)[]; | ||
//# sourceMappingURL=HeadlessInputValidator.d.ts.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -68,5 +72,6 @@ if (k2 === undefined) k2 = k; | ||
const getSchema = async (type, category, version) => { | ||
var _a; | ||
try { | ||
return { | ||
rootSchema: await Promise.resolve().then(() => __importStar(require(`amplify-headless-interface/schemas/${category}/${version}/${type}.schema.json`))), | ||
rootSchema: await (_a = `amplify-headless-interface/schemas/${category}/${version}/${type}.schema.json`, Promise.resolve().then(() => __importStar(require(_a)))), | ||
}; | ||
@@ -73,0 +78,0 @@ } |
{ | ||
"name": "amplify-util-headless-input", | ||
"version": "1.9.9", | ||
"version": "1.9.10-rc.4affb9331.0", | ||
"description": "Logic for validating objects against JSON-schema specs and performing version upgrades when necessary / possible", | ||
@@ -20,3 +20,3 @@ "main": "lib/index.js", | ||
"ajv": "^6.12.6", | ||
"amplify-headless-interface": "1.17.0" | ||
"amplify-headless-interface": "1.17.1-rc.4affb9331.0" | ||
}, | ||
@@ -28,2 +28,6 @@ "devDependencies": { | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**/*.{ts,tsx,js,jsx}", | ||
"!src/__tests__/" | ||
], | ||
"clearMocks": true, | ||
@@ -36,3 +40,3 @@ "coverageDirectory": "coverage", | ||
}, | ||
"gitHead": "5370e8badb701f018ddc7459b3bf0ee7c80a7444" | ||
"gitHead": "806f12146014f44a08909f9196aaff13079c27ba" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
49988
297
2
+ Addedamplify-headless-interface@1.17.1-rc.4affb9331.0(transitive)
- Removedamplify-headless-interface@1.17.0(transitive)