zig-pug 0.3.1 → 0.3.2
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.
- package/binding.gyp +16 -10
- package/package.json +4 -3
- package/prebuilts/darwin-arm64/libzig-pug.a +0 -0
- package/prebuilts/darwin-x64/libzig-pug.a +0 -0
- package/prebuilts/linux-arm64/libzig-pug.a +0 -0
- package/prebuilts/linux-x64/libzig-pug.a +0 -0
- package/prebuilts/win32-x64/zig-pug.lib +0 -0
- package/vendor/mujs/COPYING +0 -16
- package/vendor/mujs/README +0 -50
- package/vendor/mujs/astnames.h +0 -92
- package/vendor/mujs/jsarray.c +0 -832
- package/vendor/mujs/jsboolean.c +0 -38
- package/vendor/mujs/jsbuiltin.c +0 -249
- package/vendor/mujs/jscompile.c +0 -1428
- package/vendor/mujs/jsdate.c +0 -861
- package/vendor/mujs/jsdtoa.c +0 -749
- package/vendor/mujs/jserror.c +0 -139
- package/vendor/mujs/jsfunction.c +0 -231
- package/vendor/mujs/jsgc.c +0 -284
- package/vendor/mujs/jsi.h +0 -870
- package/vendor/mujs/jsintern.c +0 -137
- package/vendor/mujs/jslex.c +0 -878
- package/vendor/mujs/jsmath.c +0 -194
- package/vendor/mujs/jsnumber.c +0 -198
- package/vendor/mujs/jsobject.c +0 -560
- package/vendor/mujs/json.c +0 -422
- package/vendor/mujs/jsparse.c +0 -1065
- package/vendor/mujs/jsproperty.c +0 -341
- package/vendor/mujs/jsregexp.c +0 -232
- package/vendor/mujs/jsrepr.c +0 -285
- package/vendor/mujs/jsrun.c +0 -2096
- package/vendor/mujs/jsstate.c +0 -334
- package/vendor/mujs/jsstring.c +0 -852
- package/vendor/mujs/jsvalue.c +0 -708
- package/vendor/mujs/libmujs.a +0 -0
- package/vendor/mujs/main.c +0 -396
- package/vendor/mujs/mujs.h +0 -253
- package/vendor/mujs/one.c +0 -25
- package/vendor/mujs/opnames.h +0 -85
- package/vendor/mujs/pp.c +0 -980
- package/vendor/mujs/regexp.c +0 -1277
- package/vendor/mujs/regexp.h +0 -46
- package/vendor/mujs/utf.c +0 -305
- package/vendor/mujs/utf.h +0 -52
- package/vendor/mujs/utfdata.h +0 -2209
package/binding.gyp
CHANGED
|
@@ -3,19 +3,25 @@
|
|
|
3
3
|
{
|
|
4
4
|
"target_name": "zigpug",
|
|
5
5
|
"sources": [
|
|
6
|
-
"binding.c"
|
|
7
|
-
"vendor/mujs/one.c"
|
|
6
|
+
"binding.c"
|
|
8
7
|
],
|
|
9
8
|
"include_dirs": [
|
|
10
|
-
"include"
|
|
11
|
-
"vendor/mujs"
|
|
9
|
+
"include"
|
|
12
10
|
],
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
"conditions": [
|
|
12
|
+
["OS=='win'", {
|
|
13
|
+
"libraries": [
|
|
14
|
+
"<(module_root_dir)/prebuilts/win32-<(target_arch)/zig-pug.lib"
|
|
15
|
+
]
|
|
16
|
+
}, {
|
|
17
|
+
"libraries": [
|
|
18
|
+
"-lm",
|
|
19
|
+
"<(module_root_dir)/prebuilts/<(OS)-<(target_arch)/libzig-pug.a"
|
|
20
|
+
],
|
|
21
|
+
"cflags": [
|
|
22
|
+
"-std=c99"
|
|
23
|
+
]
|
|
24
|
+
}]
|
|
19
25
|
],
|
|
20
26
|
"defines": [
|
|
21
27
|
"NAPI_VERSION=8"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zig-pug",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "High-performance Pug template engine powered by Zig and mujs. Native N-API addon with ES5.1 JavaScript support, full UTF-8 (emoji, accents), documentation comments (//!), and fast compilation. Compatible with Node.js and Bun.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "index.js",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"rebuild": "node-gyp rebuild",
|
|
17
17
|
"clean": "node-gyp clean",
|
|
18
18
|
"test": "node test/test.js",
|
|
19
|
-
"
|
|
19
|
+
"build-prebuilts": "./build-prebuilts.sh",
|
|
20
|
+
"prepublishOnly": "npm run build-prebuilts"
|
|
20
21
|
},
|
|
21
22
|
"keywords": [
|
|
22
23
|
"pug",
|
|
@@ -90,6 +91,6 @@
|
|
|
90
91
|
"README.md",
|
|
91
92
|
"LICENSE",
|
|
92
93
|
"include/",
|
|
93
|
-
"
|
|
94
|
+
"prebuilts/"
|
|
94
95
|
]
|
|
95
96
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/vendor/mujs/COPYING
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2013-2020 Artifex Software, Inc.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
|
14
|
-
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
|
package/vendor/mujs/README
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
MuJS: an embeddable Javascript interpreter in C.
|
|
2
|
-
|
|
3
|
-
ABOUT
|
|
4
|
-
|
|
5
|
-
MuJS is a lightweight Javascript interpreter designed for embedding in
|
|
6
|
-
other software to extend them with scripting capabilities.
|
|
7
|
-
|
|
8
|
-
LICENSE
|
|
9
|
-
|
|
10
|
-
MuJS is Copyright 2013-2017 Artifex Software, Inc.
|
|
11
|
-
|
|
12
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
13
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
14
|
-
copyright notice and this permission notice appear in all copies.
|
|
15
|
-
|
|
16
|
-
The software is provided "as is" and the author disclaims all warranties with
|
|
17
|
-
regard to this software including all implied warranties of merchantability
|
|
18
|
-
and fitness. In no event shall the author be liable for any special, direct,
|
|
19
|
-
indirect, or consequential damages or any damages whatsoever resulting from
|
|
20
|
-
loss of use, data or profits, whether in an action of contract, negligence
|
|
21
|
-
or other tortious action, arising out of or in connection with the use or
|
|
22
|
-
performance of this software.
|
|
23
|
-
|
|
24
|
-
COMPILING
|
|
25
|
-
|
|
26
|
-
If you are building from source you can either use the provided Unix Makefile:
|
|
27
|
-
|
|
28
|
-
make release
|
|
29
|
-
|
|
30
|
-
Or compile the source with your preferred compiler:
|
|
31
|
-
|
|
32
|
-
cc -O2 -c one.c -o libmujs.o
|
|
33
|
-
|
|
34
|
-
INSTALLING
|
|
35
|
-
|
|
36
|
-
To install the MuJS command line interpreter, static library and header file:
|
|
37
|
-
|
|
38
|
-
make prefix=/usr/local install
|
|
39
|
-
|
|
40
|
-
DOWNLOAD
|
|
41
|
-
|
|
42
|
-
The latest development source is available directly from the git repository:
|
|
43
|
-
|
|
44
|
-
git clone http://git.ghostscript.com/mujs.git
|
|
45
|
-
|
|
46
|
-
REPORTING BUGS AND PROBLEMS
|
|
47
|
-
|
|
48
|
-
Report bugs on the ghostscript bugzilla, with MuJS as the selected component.
|
|
49
|
-
|
|
50
|
-
http://bugs.ghostscript.com/
|
package/vendor/mujs/astnames.h
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"list",
|
|
2
|
-
"fundec",
|
|
3
|
-
"identifier",
|
|
4
|
-
"exp_identifier",
|
|
5
|
-
"exp_number",
|
|
6
|
-
"exp_string",
|
|
7
|
-
"exp_regexp",
|
|
8
|
-
"exp_elision",
|
|
9
|
-
"exp_null",
|
|
10
|
-
"exp_true",
|
|
11
|
-
"exp_false",
|
|
12
|
-
"exp_this",
|
|
13
|
-
"exp_array",
|
|
14
|
-
"exp_object",
|
|
15
|
-
"exp_prop_val",
|
|
16
|
-
"exp_prop_get",
|
|
17
|
-
"exp_prop_set",
|
|
18
|
-
"exp_fun",
|
|
19
|
-
"exp_index",
|
|
20
|
-
"exp_member",
|
|
21
|
-
"exp_call",
|
|
22
|
-
"exp_new",
|
|
23
|
-
"exp_postinc",
|
|
24
|
-
"exp_postdec",
|
|
25
|
-
"exp_delete",
|
|
26
|
-
"exp_void",
|
|
27
|
-
"exp_typeof",
|
|
28
|
-
"exp_preinc",
|
|
29
|
-
"exp_predec",
|
|
30
|
-
"exp_pos",
|
|
31
|
-
"exp_neg",
|
|
32
|
-
"exp_bitnot",
|
|
33
|
-
"exp_lognot",
|
|
34
|
-
"exp_mod",
|
|
35
|
-
"exp_div",
|
|
36
|
-
"exp_mul",
|
|
37
|
-
"exp_sub",
|
|
38
|
-
"exp_add",
|
|
39
|
-
"exp_ushr",
|
|
40
|
-
"exp_shr",
|
|
41
|
-
"exp_shl",
|
|
42
|
-
"exp_in",
|
|
43
|
-
"exp_instanceof",
|
|
44
|
-
"exp_ge",
|
|
45
|
-
"exp_le",
|
|
46
|
-
"exp_gt",
|
|
47
|
-
"exp_lt",
|
|
48
|
-
"exp_strictne",
|
|
49
|
-
"exp_stricteq",
|
|
50
|
-
"exp_ne",
|
|
51
|
-
"exp_eq",
|
|
52
|
-
"exp_bitand",
|
|
53
|
-
"exp_bitxor",
|
|
54
|
-
"exp_bitor",
|
|
55
|
-
"exp_logand",
|
|
56
|
-
"exp_logor",
|
|
57
|
-
"exp_cond",
|
|
58
|
-
"exp_ass",
|
|
59
|
-
"exp_ass_mul",
|
|
60
|
-
"exp_ass_div",
|
|
61
|
-
"exp_ass_mod",
|
|
62
|
-
"exp_ass_add",
|
|
63
|
-
"exp_ass_sub",
|
|
64
|
-
"exp_ass_shl",
|
|
65
|
-
"exp_ass_shr",
|
|
66
|
-
"exp_ass_ushr",
|
|
67
|
-
"exp_ass_bitand",
|
|
68
|
-
"exp_ass_bitxor",
|
|
69
|
-
"exp_ass_bitor",
|
|
70
|
-
"exp_comma",
|
|
71
|
-
"exp_var",
|
|
72
|
-
"stm_block",
|
|
73
|
-
"stm_empty",
|
|
74
|
-
"stm_var",
|
|
75
|
-
"stm_if",
|
|
76
|
-
"stm_do",
|
|
77
|
-
"stm_while",
|
|
78
|
-
"stm_for",
|
|
79
|
-
"stm_for_var",
|
|
80
|
-
"stm_for_in",
|
|
81
|
-
"stm_for_in_var",
|
|
82
|
-
"stm_continue",
|
|
83
|
-
"stm_break",
|
|
84
|
-
"stm_return",
|
|
85
|
-
"stm_with",
|
|
86
|
-
"stm_switch",
|
|
87
|
-
"stm_throw",
|
|
88
|
-
"stm_try",
|
|
89
|
-
"stm_debugger",
|
|
90
|
-
"stm_label",
|
|
91
|
-
"stm_case",
|
|
92
|
-
"stm_default",
|