@eighty4/c2 0.0.2-27 → 0.0.2-29

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/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
- ## Unreleased
1
+ ## [Unreleased]
2
+
3
+ ### Added
2
4
 
3
5
  - Evaluate env() and file() expressions in user data
4
6
  - Merge multiple user data into a MIME multipart message
package/lib/build.spec.ts CHANGED
@@ -51,7 +51,7 @@ Content-Transfer-Encoding: 7bit\r
51
51
  Content-Disposition: attachment; filename="2-init-cloud.sh"\r
52
52
  \r
53
53
  cushion\r
54
- --${boundary}--\r
54
+ --${boundary}\r
55
55
  `,
56
56
  )
57
57
  })
@@ -84,7 +84,7 @@ Content-Transfer-Encoding: 7bit\r
84
84
  Content-Disposition: attachment; filename="2-init-cloud.sh"\r
85
85
  \r
86
86
  cushion\r
87
- --${boundary}--\r
87
+ --${boundary}\r
88
88
  `,
89
89
  )
90
90
  })
package/lib/http.spec.ts CHANGED
@@ -43,7 +43,7 @@ Content-Transfer-Encoding: 7bit\r
43
43
  Content-Disposition: attachment; filename="security.sh"\r
44
44
  \r
45
45
  security\r
46
- --BOUNDARY--\r
46
+ --BOUNDARY\r
47
47
  `,
48
48
  )
49
49
  })
package/lib/http.ts CHANGED
@@ -86,7 +86,7 @@ export class MultipartMessage {
86
86
  this.#attachments
87
87
  .map(a => a.toHTTP())
88
88
  .join('\r\n--' + this.#boundary + '\r\n'),
89
- '--' + this.#boundary + '--\r\n',
89
+ '--' + this.#boundary + '\r\n',
90
90
  ].join('\r\n')
91
91
  }
92
92
  }
package/lib_js/http.js CHANGED
@@ -73,7 +73,7 @@ export class MultipartMessage {
73
73
  this.#attachments
74
74
  .map(a => a.toHTTP())
75
75
  .join('\r\n--' + this.#boundary + '\r\n'),
76
- '--' + this.#boundary + '--\r\n',
76
+ '--' + this.#boundary + '\r\n',
77
77
  ].join('\r\n');
78
78
  }
79
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eighty4/c2",
3
- "version": "0.0.2-27",
3
+ "version": "0.0.2-29",
4
4
  "author": "Adam McKee <adam.be.g84d@gmail.com>",
5
5
  "repository": "https://github.com/eighty4/c2",
6
6
  "homepage": "https://github.com/eighty4/c2",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "exports": {
26
26
  ".": {
27
- "bun": "./lib_js/c2.api.js",
28
- "node": "./lib/c2.api.ts"
27
+ "bun": "./lib/c2.api.ts",
28
+ "node": "./lib_js/c2.api.js"
29
29
  }
30
30
  },
31
31
  "imports": {
@@ -36,9 +36,10 @@
36
36
  },
37
37
  "types": "./lib_types",
38
38
  "scripts": {
39
- "build": "tsc && chmod +x lib_js/c2.bin.js",
39
+ "build": "tsc",
40
40
  "fmt": "prettier --write .",
41
41
  "fmtcheck": "prettier --check .",
42
+ "test": "bun test",
42
43
  "typecheck": "tsc --noEmit"
43
44
  },
44
45
  "dependencies": {