Skip to content

Commit a9c5bec

Browse files
committed
Fix crash + add configuration support:
- fix crash ("Maximum call stack size exceeded") when a substitution includes a parameter name - support selecting the function(s) to inline via an annotation (comment) or label to avoid the need to mangle function names - support custom prefixes, e.g. "__inline__" rather than "__INLINE__" - rejig the tests to use snapshots rather than manually creating every fixture - documentation overhaul - add missing description + repo link to the package.json - add missing license
1 parent 1c6c186 commit a9c5bec

33 files changed

+3360
-156
lines changed

.babelrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://EditorConfig.org
2+
3+
# is this the topmost EditorConfig file?
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespaces = true
11+
12+
[*.{js,ts}]
13+
indent_size = 2
14+
indent_style = space
15+
max_line_length = 80
16+
17+
[*.{yml,yaml}]
18+
indent_size = 2
19+
indent_style = space
20+
max_line_length = 80

.gitignore

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,90 @@
1+
# Created by https://www.gitignore.io/api/node
2+
3+
### Node ###
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
yarn-debug.log*
9+
yarn-error.log*
10+
11+
# Runtime data
12+
pids
13+
*.pid
14+
*.seed
15+
*.pid.lock
16+
17+
# Directory for instrumented libs generated by jscoverage/JSCover
18+
lib-cov
19+
20+
# Coverage directory used by tools like istanbul
21+
coverage
22+
23+
# nyc test coverage
24+
.nyc_output
25+
26+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
27+
.grunt
28+
29+
# Bower dependency directory (https://bower.io/)
30+
bower_components
31+
32+
# node-waf configuration
33+
.lock-wscript
34+
35+
# Compiled binary addons (https://nodejs.org/api/addons.html)
36+
build/Release
37+
38+
# Dependency directories
139
node_modules/
40+
jspm_packages/
41+
42+
# TypeScript v1 declaration files
43+
typings/
44+
45+
# Optional npm cache directory
46+
.npm
47+
48+
# Optional eslint cache
49+
.eslintcache
50+
51+
# Optional REPL history
52+
.node_repl_history
53+
54+
# Output of 'npm pack'
55+
*.tgz
56+
57+
# Yarn Integrity file
58+
.yarn-integrity
59+
60+
# dotenv environment variables file
61+
.env
62+
63+
# parcel-bundler cache (https://parceljs.org/)
64+
.cache
65+
66+
# next.js build output
67+
.next
68+
69+
# nuxt.js build output
70+
.nuxt
71+
72+
# vuepress build output
73+
.vuepress/dist
74+
75+
# Serverless directories
76+
.serverless
77+
78+
# End of https://www.gitignore.io/api/node
79+
80+
# Custom
81+
82+
/.*cache*
83+
/dev/
84+
/dist/
85+
/publish/
86+
/staging/
87+
/target/
88+
temp.*
89+
/test.js
90+
/test.ts

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
cache:
3+
yarn: true
4+
directories:
5+
- node_modules
6+
node_js:
7+
- '10'
8+
- '12'
9+
- '14'

LICENSE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Internet Systems Consortium license
2+
===================================
3+
4+
Copyright (c) 2016, Emile Cantin
5+
6+
Permission to use, copy, modify, and/or distribute this software for any purpose
7+
with or without fee is hereby granted, provided that the above copyright notice
8+
and this permission notice appear in all copies.
9+
10+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
12+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
14+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
16+
THIS SOFTWARE.

0 commit comments

Comments
 (0)