@cosmwasm/ts-codegen 0.32.0 → 0.33.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.
@@ -126,7 +126,7 @@ var _default = /*#__PURE__*/function () {
|
|
126
126
|
var content = fs.readFileSync(templateFile).toString();
|
127
127
|
|
128
128
|
if (path.basename(templateFile) === 'LICENSE' && license.__LICENSE__ === 'closed') {
|
129
|
-
content = "Copyright (c)
|
129
|
+
content = "Copyright (c) 2023 __USERFULLNAME__ <__USEREMAIL__> - All Rights Reserved\nUnauthorized copying via any medium is strictly prohibited\nProprietary and confidential";
|
130
130
|
}
|
131
131
|
|
132
132
|
Object.keys(results).forEach(function (key) {
|
@@ -143,11 +143,10 @@ var _default = /*#__PURE__*/function () {
|
|
143
143
|
}
|
144
144
|
} else {
|
145
145
|
content = content.replace(/__PACKAGE_IDENTIFIER__/g, "@".concat(results.__USERNAME__, "/").concat(results.__MODULENAME__));
|
146
|
-
}
|
146
|
+
} // if (path.basename(templateFile) === 'README.md') {
|
147
|
+
// content = `# ${results.__MODULENAME__}`;
|
148
|
+
// }
|
147
149
|
|
148
|
-
if (path.basename(templateFile) === 'README.md') {
|
149
|
-
content = "# ".concat(results.__MODULENAME__);
|
150
|
-
}
|
151
150
|
|
152
151
|
fs.writeFileSync(templateFile, content);
|
153
152
|
};
|
@@ -75,7 +75,7 @@ export default (async argv => {
|
|
75
75
|
let content = fs.readFileSync(templateFile).toString();
|
76
76
|
|
77
77
|
if (path.basename(templateFile) === 'LICENSE' && license.__LICENSE__ === 'closed') {
|
78
|
-
content = `Copyright (c)
|
78
|
+
content = `Copyright (c) 2023 __USERFULLNAME__ <__USEREMAIL__> - All Rights Reserved
|
79
79
|
Unauthorized copying via any medium is strictly prohibited
|
80
80
|
Proprietary and confidential`;
|
81
81
|
}
|
@@ -94,11 +94,10 @@ Proprietary and confidential`;
|
|
94
94
|
}
|
95
95
|
} else {
|
96
96
|
content = content.replace(/__PACKAGE_IDENTIFIER__/g, `@${results.__USERNAME__}/${results.__MODULENAME__}`);
|
97
|
-
}
|
97
|
+
} // if (path.basename(templateFile) === 'README.md') {
|
98
|
+
// content = `# ${results.__MODULENAME__}`;
|
99
|
+
// }
|
98
100
|
|
99
|
-
if (path.basename(templateFile) === 'README.md') {
|
100
|
-
content = `# ${results.__MODULENAME__}`;
|
101
|
-
}
|
102
101
|
|
103
102
|
fs.writeFileSync(templateFile, content);
|
104
103
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.33.0",
|
4
4
|
"description": "@cosmwasm/ts-codegen converts your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/cosmwasm/ts-codegen",
|
@@ -98,5 +98,5 @@
|
|
98
98
|
"shelljs": "0.8.5",
|
99
99
|
"wasm-ast-types": "^0.24.0"
|
100
100
|
},
|
101
|
-
"gitHead": "
|
101
|
+
"gitHead": "9d4f9eca0ee378e0f53c5b95343842d76d446534"
|
102
102
|
}
|
@@ -88,7 +88,7 @@ export default async argv => {
|
|
88
88
|
path.basename(templateFile) === 'LICENSE' &&
|
89
89
|
license.__LICENSE__ === 'closed'
|
90
90
|
) {
|
91
|
-
content = `Copyright (c)
|
91
|
+
content = `Copyright (c) 2023 __USERFULLNAME__ <__USEREMAIL__> - All Rights Reserved
|
92
92
|
Unauthorized copying via any medium is strictly prohibited
|
93
93
|
Proprietary and confidential`;
|
94
94
|
}
|
@@ -118,9 +118,9 @@ Proprietary and confidential`;
|
|
118
118
|
);
|
119
119
|
}
|
120
120
|
|
121
|
-
if (path.basename(templateFile) === 'README.md') {
|
122
|
-
|
123
|
-
}
|
121
|
+
// if (path.basename(templateFile) === 'README.md') {
|
122
|
+
// content = `# ${results.__MODULENAME__}`;
|
123
|
+
// }
|
124
124
|
|
125
125
|
fs.writeFileSync(templateFile, content);
|
126
126
|
}
|