seyfert 4.0.1-dev-21085534804.0 → 4.0.1-dev-21273098940.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.
@@ -19,7 +19,7 @@ class Attachment extends Base_1.Base {
19
19
  constructor(client, data) {
20
20
  super(client);
21
21
  this.data = data;
22
- this.__patchThis(data);
22
+ this.__patchThis({ ...data });
23
23
  }
24
24
  toJSON() {
25
25
  return { ...this.data };
@@ -254,7 +254,7 @@ function toCamelCase(target) {
254
254
  }
255
255
  exports.ReplaceRegex = {
256
256
  camel: (s) => {
257
- return s.toLowerCase().replace(/(_\S)/gi, a => a[1].toUpperCase());
257
+ return s.replace(/_([a-z0-9])/gi, (_, char) => char.toUpperCase());
258
258
  },
259
259
  snake: (s) => {
260
260
  return s.replace(/[A-Z]/g, a => `_${a.toLowerCase()}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "4.0.1-dev-21085534804.0",
3
+ "version": "4.0.1-dev-21273098940.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",