@khanacademy/perseus-core
Advanced tools
Comparing version 0.0.0-PR725-20230913212515 to 0.0.0-PR745-20230928001000
# @khanacademy/perseus-core | ||
## 0.0.0-PR725-20230913212515 | ||
## 0.0.0-PR745-20230928001000 | ||
### Patch Changes | ||
- dc6c6973: Print package name and version when loaded in the page | ||
## 1.1.0 | ||
### Minor Changes | ||
@@ -6,0 +12,0 @@ |
@@ -0,2 +1,19 @@ | ||
// This file is processed by a Rollup plugin (replace) to inject the production | ||
// version number during the release build. | ||
// In dev, you'll never see the version number. | ||
const libName = "@khanacademy/perseus-core"; | ||
const libVersion = "1.1.0"; // Injected by the build in rollup.config.js; | ||
/** | ||
* Log library version to the console. | ||
*/ | ||
if (globalThis && !globalThis.PERSEUS_SILENCE_LOGGING) { | ||
let prefix = "v"; | ||
const printString = ` * ${libName} ${prefix}${libVersion} * `; | ||
// eslint-disable-next-line no-console | ||
console.log(`%c${printString}`, "background: #000; color: #fff"); | ||
} | ||
export { libVersion }; | ||
//# sourceMappingURL=index.js.map |
@@ -0,2 +1,3 @@ | ||
export { default as libVersion } from "./version"; | ||
export type { PerseusAnalyticsEvent, AnalyticsEventHandlerFn } from "./analytics"; | ||
export type { KEScore, KeypadContextRendererInterface, RendererInterface, } from "./types"; |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
// This file is processed by a Rollup plugin (replace) to inject the production | ||
// version number during the release build. | ||
// In dev, you'll never see the version number. | ||
const libName = "@khanacademy/perseus-core"; | ||
const libVersion = "1.1.0"; // Injected by the build in rollup.config.js; | ||
/** | ||
* Log library version to the console. | ||
*/ | ||
if (globalThis && !globalThis.PERSEUS_SILENCE_LOGGING) { | ||
let prefix = "v"; | ||
const printString = " * ".concat(libName, " ").concat(prefix).concat(libVersion, " * "); | ||
// eslint-disable-next-line no-console | ||
console.log("%c".concat(printString), "background: #000; color: #fff"); | ||
} | ||
exports.libVersion = libVersion; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.0-PR725-20230913212515", | ||
"version": "0.0.0-PR745-20230928001000", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "access": "public" |
@@ -0,1 +1,3 @@ | ||
export {default as libVersion} from "./version"; | ||
export type {PerseusAnalyticsEvent, AnalyticsEventHandlerFn} from "./analytics"; | ||
@@ -2,0 +4,0 @@ export type { |
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
57429
19
220