From f53c316ecba7765e4fa412bd562b8af69c240808 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 2 Feb 2018 03:42:50 -0500 Subject: [PATCH] chore: replace fresca with fresh-resume-schema --- package.json | 2 +- src/core/fresh-resume.coffee | 2 +- src/verbs/validate.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 613346b..459e3fa 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,8 @@ "copy": "^0.1.3", "escape-latex": "^0.1.2", "extend": "^3.0.0", - "fresca": "~0.6.1", "fresh-jrs-converter": "^0.2.3", + "fresh-resume-schema": "^1.0.0-beta", "fresh-resume-starter": "^0.3.1", "fresh-themes": "^0.16.0-beta", "fs-extra": "^0.26.4", diff --git a/src/core/fresh-resume.coffee b/src/core/fresh-resume.coffee index 28b89e5..8a7e825 100644 --- a/src/core/fresh-resume.coffee +++ b/src/core/fresh-resume.coffee @@ -285,7 +285,7 @@ class FreshResume extends AbstractResume ###* Validate the sheet against the FRESH Resume schema. ### isValid: ( info ) -> - schemaObj = require 'fresca' + schemaObj = require 'fresh-resume-schema' validator = require 'is-my-json-valid' validate = validator( schemaObj, { # See Note [1]. formats: { date: /^\d{4}(?:-(?:0[0-9]{1}|1[0-2]{1})(?:-[0-9]{2})?)?$/ } diff --git a/src/verbs/validate.coffee b/src/verbs/validate.coffee index bc07520..c74e7f2 100644 --- a/src/verbs/validate.coffee +++ b/src/verbs/validate.coffee @@ -36,7 +36,7 @@ _validate = (sources, unused, opts) -> validator = require 'is-my-json-valid' schemas = - fresh: require 'fresca' + fresh: require 'fresh-resume-schema' jars: require '../core/resume.json' results = _.map sources, (t) ->