@jaredwray/fumanchu 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -2
  2. package/package.json +1 -8
  3. package/index.mjs +0 -16
package/README.md CHANGED
@@ -58,9 +58,8 @@ console.log(fn);
58
58
  If using it with es6 you can access `helpers` via destructuring:
59
59
 
60
60
  ```javascript
61
- import fumanchu from '@jaredwray/fumanchu';
61
+ import fumanchu, {handlebarHelpers} from '@jaredwray/fumanchu';
62
62
  import handlebars from 'handlebars';
63
- const {handlebarHelpers} = fumanchu;
64
63
  handlebarHelpers({ handlebars: handlebars });
65
64
  const template = handlebars.compile('{{#if (eq foo "bar")}}<p>Foo is bar</p>{{/if}}');
66
65
  const html = template({foo: 'bar'});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jaredwray/fumanchu",
3
3
  "description": "Handlebars + Helpers = Fumanchu",
4
- "version": "2.0.0",
4
+ "version": "2.1.0",
5
5
  "homepage": "https://github.com/jaredwray/fumanchu",
6
6
  "author": "Jared Wray (me@jaredwray.com)",
7
7
  "keywords": [
@@ -98,13 +98,6 @@
98
98
  "source": "index.js",
99
99
  "main": "index.js",
100
100
  "types": "index.d.ts",
101
- "exports": {
102
- "import": "./index.mjs",
103
- "require": "./index.js"
104
- },
105
- "engines": {
106
- "node": ">=20"
107
- },
108
101
  "scripts": {
109
102
  "test": "c8 mocha --reporter list",
110
103
  "test:ci": "c8 --reporter=lcov mocha --reporter list",
package/index.mjs DELETED
@@ -1,16 +0,0 @@
1
- import HandlebarsLib from 'handlebars';
2
-
3
- const handlebars = HandlebarsLib.create();
4
-
5
- // Variable to hold the helpers function
6
- let handlebarHelpers;
7
-
8
- import('./helpers.js').then((module) => {
9
- handlebarHelpers = module.default;
10
- handlebarHelpers({ handlebars: handlebars });
11
- });
12
-
13
- // Exporting for ESM
14
- export default handlebars;
15
- export { handlebarHelpers };
16
-