Fix: fixup package name [skip ci]

This commit is contained in:
Henry Zhu 2018-01-30 12:04:39 -05:00
parent 65ae4ff15b
commit 8e0d247e8c
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ export default function populatePlaceholders(
throw new Error(
`Error: No substitution given for "${placeholderName}". If this is not meant to be a
placeholder you may want to consider passing one of the following options to babel-template:
placeholder you may want to consider passing one of the following options to @babel/template:
- { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}
- { placeholderPattern: /^${placeholderName}$/ }`,
);
@ -45,7 +45,7 @@ export default function populatePlaceholders(
(replacements && replacements[placeholder.name]) || null,
);
} catch (e) {
e.message = `babel-template placeholder "${placeholder.name}": ${
e.message = `@babel/template placeholder "${placeholder.name}": ${
e.message
}`;
throw e;

View File

@ -5,7 +5,7 @@ import * as t from "@babel/types";
const comments = "// Sum two numbers\nconst add = (a, b) => a + b;";
describe("babel-template", function() {
describe("@babel/template", function() {
it("import statements are allowed by default", function() {
expect(function() {
template("import foo from 'foo'")({});
@ -136,7 +136,7 @@ describe("babel-template", function() {
}).to.throw(
Error,
`Error: No substitution given for "ANOTHER_ID". If this is not meant to be a
placeholder you may want to consider passing one of the following options to babel-template:
placeholder you may want to consider passing one of the following options to @babel/template:
- { placeholderPattern: false, placeholderWhitelist: new Set(['ANOTHER_ID'])}
- { placeholderPattern: /^ANOTHER_ID$/ }`,
);