@flourish/interpreter
Advanced tools
Comparing version
{ | ||
"name": "@flourish/interpreter", | ||
"version": "8.6.0", | ||
"type": "module", | ||
"version": "9.0.0", | ||
"private": false, | ||
@@ -8,2 +9,5 @@ "description": "Does a best guess at the type of data supplied", | ||
"module": "src/index.js", | ||
"exports": { | ||
".": "./src/index.js" | ||
}, | ||
"author": "Kiln Enterprises Ltd", | ||
@@ -35,5 +39,4 @@ "license": "LicenseRef-LICENSE", | ||
"minify": "uglifyjs -m -o interpreter.min.js interpreter.js", | ||
"pretest": "npm run build", | ||
"test": "mocha" | ||
"test": "npm run build && mocha" | ||
} | ||
} |
@@ -0,1 +1,5 @@ | ||
# 9.0.0 | ||
* Switch to preferring ESM by default on recent versions of Node.js by adding an `exports` field to `package.json`. | ||
* Run build script as part of `prepublishOnly` instead of `prepare`. | ||
# 8.6.0 | ||
@@ -2,0 +6,0 @@ * Add "%b ’%y" and "%Y%m" datetime format |
@@ -1,4 +0,4 @@ | ||
const { expect } = require("chai"); | ||
const { createInterpreter } = require("../interpreter.js"); | ||
const _createAccessorFunction = createInterpreter._createAccessorFunction; | ||
import { expect } from "chai"; | ||
import { createInterpreter } from "../src/index.js"; | ||
const { _createAccessorFunction } = createInterpreter; | ||
@@ -5,0 +5,0 @@ const string_data = [ "a", "b", "c", "d"]; |
136992
0.15%Yes
NaN