projen 0.31.19 → 0.32.3
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/.jsii +2276 -571
- package/API.md +747 -79
- package/README.md +1 -0
- package/docs/aws-lambda.md +103 -0
- package/docs/publisher.md +24 -1
- package/lib/awscdk/auto-discover.d.ts +46 -0
- package/lib/awscdk/auto-discover.js +46 -0
- package/lib/awscdk/cdk-config.d.ts +103 -0
- package/lib/awscdk/cdk-config.js +56 -0
- package/lib/awscdk/cdk-tasks.d.ts +38 -0
- package/lib/awscdk/cdk-tasks.js +39 -0
- package/lib/awscdk/index.d.ts +5 -0
- package/lib/awscdk/index.js +18 -0
- package/lib/awscdk/internal.d.ts +8 -0
- package/lib/awscdk/internal.js +26 -0
- package/lib/awscdk/java-app.d.ts +92 -0
- package/lib/awscdk/java-app.js +90 -0
- package/lib/awscdk/lambda-function.d.ts +146 -0
- package/lib/awscdk/lambda-function.js +160 -0
- package/lib/awscdk-app-ts.d.ts +22 -40
- package/lib/awscdk-app-ts.js +21 -46
- package/lib/awscdk-construct.d.ts +15 -58
- package/lib/awscdk-construct.js +13 -62
- package/lib/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s-construct.js +1 -1
- package/lib/cdktf-construct.js +1 -1
- package/lib/common.js +6 -2
- package/lib/component.js +1 -1
- package/lib/construct-lib.js +1 -1
- package/lib/deps/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose.js +2 -2
- package/lib/eslint.d.ts +18 -0
- package/lib/eslint.js +17 -5
- package/lib/file.js +1 -1
- package/lib/git/gitattributes.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflows.js +4 -5
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/ini.js +1 -1
- package/lib/inventory.js +4 -5
- package/lib/java/java-project.d.ts +28 -14
- package/lib/java/java-project.js +3 -2
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.d.ts +144 -0
- package/lib/javascript/bundler.js +93 -0
- package/lib/javascript/index.d.ts +1 -0
- package/lib/javascript/index.js +2 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/jest.js +1 -1
- package/lib/jsii-project.js +1 -1
- package/lib/json/projenrc.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/node-package.d.ts +39 -2
- package/lib/node-package.js +31 -5
- package/lib/node-project.d.ts +11 -1
- package/lib/node-project.js +25 -16
- package/lib/object-file.js +1 -1
- package/lib/project.js +2 -2
- package/lib/projects.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +4 -5
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.d.ts +36 -0
- package/lib/release/publisher.js +20 -5
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/tasks/runtime.js +1 -1
- package/lib/tasks/task.js +1 -1
- package/lib/tasks/tasks.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript-config.js +1 -1
- package/lib/typescript.js +3 -3
- package/lib/upgrade-dependencies.js +2 -2
- package/lib/util.js +11 -3
- package/lib/version.js +1 -1
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/case/LICENSE +22 -0
- package/node_modules/case/README.md +139 -0
- package/node_modules/case/case.d.ts +43 -0
- package/node_modules/case/dist/Case.js +171 -0
- package/node_modules/case/dist/Case.min.js +5 -0
- package/node_modules/case/dist/Case.min.js.map +1 -0
- package/node_modules/case/dist/Case.plus.js +189 -0
- package/node_modules/case/dist/Case.plus.min.js +5 -0
- package/node_modules/case/dist/Case.plus.min.js.map +1 -0
- package/node_modules/case/package.json +58 -0
- package/package.json +4 -4
- package/node_modules/decamelize/index.d.ts +0 -20
- package/node_modules/decamelize/index.js +0 -12
- package/node_modules/decamelize/license +0 -9
- package/node_modules/decamelize/package.json +0 -40
- package/node_modules/decamelize/readme.md +0 -51
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/*! Case - v1.6.2 - 2020-03-24
|
|
2
|
+
* Copyright (c) 2020 Nathan Bubna; Licensed MIT, GPL */
|
|
3
|
+
(function() {
|
|
4
|
+
"use strict";
|
|
5
|
+
var unicodes = function(s, prefix) {
|
|
6
|
+
prefix = prefix || '';
|
|
7
|
+
return s.replace(/(^|-)/g, '$1\\u'+prefix).replace(/,/g, '\\u'+prefix);
|
|
8
|
+
},
|
|
9
|
+
basicSymbols = unicodes('20-26,28-2F,3A-40,5B-60,7B-7E,A0-BF,D7,F7', '00'),
|
|
10
|
+
baseLowerCase = 'a-z'+unicodes('DF-F6,F8-FF', '00'),
|
|
11
|
+
baseUpperCase = 'A-Z'+unicodes('C0-D6,D8-DE', '00'),
|
|
12
|
+
improperInTitle = 'A|An|And|As|At|But|By|En|For|If|In|Of|On|Or|The|To|Vs?\\.?|Via',
|
|
13
|
+
regexps = function(symbols, lowers, uppers, impropers) {
|
|
14
|
+
symbols = symbols || basicSymbols;
|
|
15
|
+
lowers = lowers || baseLowerCase;
|
|
16
|
+
uppers = uppers || baseUpperCase;
|
|
17
|
+
impropers = impropers || improperInTitle;
|
|
18
|
+
return {
|
|
19
|
+
capitalize: new RegExp('(^|['+symbols+'])(['+lowers+'])', 'g'),
|
|
20
|
+
pascal: new RegExp('(^|['+symbols+'])+(['+lowers+uppers+'])', 'g'),
|
|
21
|
+
fill: new RegExp('['+symbols+']+(.|$)','g'),
|
|
22
|
+
sentence: new RegExp('(^\\s*|[\\?\\!\\.]+"?\\s+"?|,\\s+")(['+lowers+'])', 'g'),
|
|
23
|
+
improper: new RegExp('\\b('+impropers+')\\b', 'g'),
|
|
24
|
+
relax: new RegExp('([^'+uppers+'])(['+uppers+']*)(['+uppers+'])(?=[^'+uppers+']|$)', 'g'),
|
|
25
|
+
upper: new RegExp('^[^'+lowers+']+$'),
|
|
26
|
+
hole: /[^\s]\s[^\s]/,
|
|
27
|
+
apostrophe: /'/g,
|
|
28
|
+
room: new RegExp('['+symbols+']')
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
re = regexps(),
|
|
32
|
+
_ = {
|
|
33
|
+
re: re,
|
|
34
|
+
unicodes: unicodes,
|
|
35
|
+
regexps: regexps,
|
|
36
|
+
types: [],
|
|
37
|
+
up: String.prototype.toUpperCase,
|
|
38
|
+
low: String.prototype.toLowerCase,
|
|
39
|
+
cap: function(s) {
|
|
40
|
+
return _.up.call(s.charAt(0))+s.slice(1);
|
|
41
|
+
},
|
|
42
|
+
decap: function(s) {
|
|
43
|
+
return _.low.call(s.charAt(0))+s.slice(1);
|
|
44
|
+
},
|
|
45
|
+
deapostrophe: function(s) {
|
|
46
|
+
return s.replace(re.apostrophe, '');
|
|
47
|
+
},
|
|
48
|
+
fill: function(s, fill, deapostrophe) {
|
|
49
|
+
if (fill != null) {
|
|
50
|
+
s = s.replace(re.fill, function(m, next) {
|
|
51
|
+
return next ? fill + next : '';
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
if (deapostrophe) {
|
|
55
|
+
s = _.deapostrophe(s);
|
|
56
|
+
}
|
|
57
|
+
return s;
|
|
58
|
+
},
|
|
59
|
+
prep: function(s, fill, pascal, upper) {
|
|
60
|
+
s = s == null ? '' : s + '';// force to string
|
|
61
|
+
if (!upper && re.upper.test(s)) {
|
|
62
|
+
s = _.low.call(s);
|
|
63
|
+
}
|
|
64
|
+
if (!fill && !re.hole.test(s)) {
|
|
65
|
+
var holey = _.fill(s, ' ');
|
|
66
|
+
if (re.hole.test(holey)) {
|
|
67
|
+
s = holey;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (!pascal && !re.room.test(s)) {
|
|
71
|
+
s = s.replace(re.relax, _.relax);
|
|
72
|
+
}
|
|
73
|
+
return s;
|
|
74
|
+
},
|
|
75
|
+
relax: function(m, before, acronym, caps) {
|
|
76
|
+
return before + ' ' + (acronym ? acronym+' ' : '') + caps;
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
Case = {
|
|
80
|
+
_: _,
|
|
81
|
+
of: function(s) {
|
|
82
|
+
for (var i=0,m=_.types.length; i<m; i++) {
|
|
83
|
+
if (Case[_.types[i]].apply(Case, arguments) === s){ return _.types[i]; }
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
flip: function(s) {
|
|
87
|
+
return s.replace(/\w/g, function(l) {
|
|
88
|
+
return (l == _.up.call(l) ? _.low : _.up).call(l);
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
random: function(s) {
|
|
92
|
+
return s.replace(/\w/g, function(l) {
|
|
93
|
+
return (Math.round(Math.random()) ? _.up : _.low).call(l);
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
type: function(type, fn) {
|
|
97
|
+
Case[type] = fn;
|
|
98
|
+
_.types.push(type);
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
types = {
|
|
102
|
+
lower: function(s, fill, deapostrophe) {
|
|
103
|
+
return _.fill(_.low.call(_.prep(s, fill)), fill, deapostrophe);
|
|
104
|
+
},
|
|
105
|
+
snake: function(s) {
|
|
106
|
+
return Case.lower(s, '_', true);
|
|
107
|
+
},
|
|
108
|
+
constant: function(s) {
|
|
109
|
+
return Case.upper(s, '_', true);
|
|
110
|
+
},
|
|
111
|
+
camel: function(s) {
|
|
112
|
+
return _.decap(Case.pascal(s));
|
|
113
|
+
},
|
|
114
|
+
kebab: function(s) {
|
|
115
|
+
return Case.lower(s, '-', true);
|
|
116
|
+
},
|
|
117
|
+
upper: function(s, fill, deapostrophe) {
|
|
118
|
+
return _.fill(_.up.call(_.prep(s, fill, false, true)), fill, deapostrophe);
|
|
119
|
+
},
|
|
120
|
+
capital: function(s, fill, deapostrophe) {
|
|
121
|
+
return _.fill(_.prep(s).replace(re.capitalize, function(m, border, letter) {
|
|
122
|
+
return border+_.up.call(letter);
|
|
123
|
+
}), fill, deapostrophe);
|
|
124
|
+
},
|
|
125
|
+
header: function(s) {
|
|
126
|
+
return Case.capital(s, '-', true);
|
|
127
|
+
},
|
|
128
|
+
pascal: function(s) {
|
|
129
|
+
return _.fill(_.prep(s, false, true).replace(re.pascal, function(m, border, letter) {
|
|
130
|
+
return _.up.call(letter);
|
|
131
|
+
}), '', true);
|
|
132
|
+
},
|
|
133
|
+
title: function(s) {
|
|
134
|
+
return Case.capital(s).replace(re.improper, function(small, p, i, s) {
|
|
135
|
+
return i > 0 && i < s.lastIndexOf(' ') ? _.low.call(small) : small;
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
sentence: function(s, names, abbreviations) {
|
|
139
|
+
s = Case.lower(s).replace(re.sentence, function(m, prelude, letter) {
|
|
140
|
+
return prelude + _.up.call(letter);
|
|
141
|
+
});
|
|
142
|
+
if (names) {
|
|
143
|
+
names.forEach(function(name) {
|
|
144
|
+
s = s.replace(new RegExp('\\b'+Case.lower(name)+'\\b', "g"), _.cap);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
if (abbreviations) {
|
|
148
|
+
abbreviations.forEach(function(abbr) {
|
|
149
|
+
s = s.replace(new RegExp('(\\b'+Case.lower(abbr)+'\\. +)(\\w)'), function(m, abbrAndSpace, letter) {
|
|
150
|
+
return abbrAndSpace + _.low.call(letter);
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
return s;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// TODO: Remove "squish" in a future breaking release.
|
|
159
|
+
types.squish = types.pascal;
|
|
160
|
+
|
|
161
|
+
// Allow import default
|
|
162
|
+
Case.default = Case;
|
|
163
|
+
|
|
164
|
+
for (var type in types) {
|
|
165
|
+
Case.type(type, types[type]);
|
|
166
|
+
}
|
|
167
|
+
// export Case (AMD, commonjs, or global)
|
|
168
|
+
var define = typeof define === "function" ? define : function(){};
|
|
169
|
+
define(typeof module === "object" && module.exports ? module.exports = Case : this.Case = Case);
|
|
170
|
+
|
|
171
|
+
}).call(this);
|
|
172
|
+
|
|
173
|
+
(function(Case, _) {
|
|
174
|
+
function create(type) {
|
|
175
|
+
var fn = 'to'+_.cap(type)+'Case';
|
|
176
|
+
String.prototype[fn] = function() {
|
|
177
|
+
Array.prototype.unshift.call(arguments, this);
|
|
178
|
+
return Case[type].apply(Case, arguments);
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
for (var i=0,m=_.types.length; i<m; i++) {
|
|
182
|
+
create(_.types[i]);
|
|
183
|
+
}
|
|
184
|
+
var _type = Case.type;
|
|
185
|
+
Case.type = function(type, fn) {
|
|
186
|
+
_type(type, fn);
|
|
187
|
+
create(type);
|
|
188
|
+
};
|
|
189
|
+
})(Case, Case._);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*! Case - v1.6.2 - 2020-03-24
|
|
2
|
+
* Copyright (c) 2020 Nathan Bubna; Licensed MIT, GPL */
|
|
3
|
+
|
|
4
|
+
(function(){"use strict";function e(e,n){return n=n||"",e.replace(/(^|-)/g,"$1\\u"+n).replace(/,/g,"\\u"+n)}function n(e,n,r,t){return e=e||p,n=n||l,r=r||o,t=t||"A|An|And|As|At|But|By|En|For|If|In|Of|On|Or|The|To|Vs?\\.?|Via",{capitalize:new RegExp("(^|["+e+"])(["+n+"])","g"),pascal:new RegExp("(^|["+e+"])+(["+n+r+"])","g"),fill:new RegExp("["+e+"]+(.|$)","g"),sentence:new RegExp('(^\\s*|[\\?\\!\\.]+"?\\s+"?|,\\s+")(['+n+"])","g"),improper:new RegExp("\\b("+t+")\\b","g"),relax:new RegExp("([^"+r+"])(["+r+"]*)(["+r+"])(?=[^"+r+"]|$)","g"),upper:new RegExp("^[^"+n+"]+$"),hole:/[^\s]\s[^\s]/,apostrophe:/'/g,room:new RegExp("["+e+"]")}}var p=e("20-26,28-2F,3A-40,5B-60,7B-7E,A0-BF,D7,F7","00"),l="a-z"+e("DF-F6,F8-FF","00"),o="A-Z"+e("C0-D6,D8-DE","00"),u=n(),c={re:u,unicodes:e,regexps:n,types:[],up:String.prototype.toUpperCase,low:String.prototype.toLowerCase,cap:function(e){return c.up.call(e.charAt(0))+e.slice(1)},decap:function(e){return c.low.call(e.charAt(0))+e.slice(1)},deapostrophe:function(e){return e.replace(u.apostrophe,"")},fill:function(e,r,n){return null!=r&&(e=e.replace(u.fill,function(e,n){return n?r+n:""})),n&&(e=c.deapostrophe(e)),e},prep:function(e,n,r,t){if(e=null==e?"":e+"",!t&&u.upper.test(e)&&(e=c.low.call(e)),!n&&!u.hole.test(e)){var p=c.fill(e," ");u.hole.test(p)&&(e=p)}return r||u.room.test(e)||(e=e.replace(u.relax,c.relax)),e},relax:function(e,n,r,t){return n+" "+(r?r+" ":"")+t}},t={_:c,of:function(e){for(var n=0,r=c.types.length;n<r;n++)if(t[c.types[n]].apply(t,arguments)===e)return c.types[n]},flip:function(e){return e.replace(/\w/g,function(e){return(e==c.up.call(e)?c.low:c.up).call(e)})},random:function(e){return e.replace(/\w/g,function(e){return(Math.round(Math.random())?c.up:c.low).call(e)})},type:function(e,n){t[e]=n,c.types.push(e)}},r={lower:function(e,n,r){return c.fill(c.low.call(c.prep(e,n)),n,r)},snake:function(e){return t.lower(e,"_",!0)},constant:function(e){return t.upper(e,"_",!0)},camel:function(e){return c.decap(t.pascal(e))},kebab:function(e){return t.lower(e,"-",!0)},upper:function(e,n,r){return c.fill(c.up.call(c.prep(e,n,!1,!0)),n,r)},capital:function(e,n,r){return c.fill(c.prep(e).replace(u.capitalize,function(e,n,r){return n+c.up.call(r)}),n,r)},header:function(e){return t.capital(e,"-",!0)},pascal:function(e){return c.fill(c.prep(e,!1,!0).replace(u.pascal,function(e,n,r){return c.up.call(r)}),"",!0)},title:function(e){return t.capital(e).replace(u.improper,function(e,n,r,t){return 0<r&&r<t.lastIndexOf(" ")?c.low.call(e):e})},sentence:function(n,e,r){return n=t.lower(n).replace(u.sentence,function(e,n,r){return n+c.up.call(r)}),e&&e.forEach(function(e){n=n.replace(new RegExp("\\b"+t.lower(e)+"\\b","g"),c.cap)}),r&&r.forEach(function(e){n=n.replace(new RegExp("(\\b"+t.lower(e)+"\\. +)(\\w)"),function(e,n,r){return n+c.low.call(r)})}),n}};for(var a in r.squish=r.pascal,t.default=t,r)t.type(a,r[a]);var i="function"==typeof i?i:function(){};i("object"==typeof module&&module.exports?module.exports=t:this.Case=t)}).call(this),function(r,t){function p(e){var n="to"+t.cap(e)+"Case";String.prototype[n]=function(){return Array.prototype.unshift.call(arguments,this),r[e].apply(r,arguments)}}for(var e=0,n=t.types.length;e<n;e++)p(t.types[e]);var l=r.type;r.type=function(e,n){l(e,n),p(e)}}(Case,Case._);
|
|
5
|
+
//# sourceMappingURL=Case.plus.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Case.plus.js"],"names":["unicodes","s","prefix","replace","regexps","symbols","lowers","uppers","impropers","basicSymbols","baseLowerCase","baseUpperCase","capitalize","RegExp","pascal","fill","sentence","improper","relax","upper","hole","apostrophe","room","re","_","types","up","String","prototype","toUpperCase","low","toLowerCase","cap","call","charAt","slice","decap","deapostrophe","m","next","prep","test","holey","before","acronym","caps","Case","of","i","length","apply","arguments","flip","l","random","Math","round","type","fn","push","lower","snake","constant","camel","kebab","capital","border","letter","header","title","small","p","lastIndexOf","names","abbreviations","prelude","forEach","name","abbr","abbrAndSpace","squish","default","define","module","exports","this","create","Array","unshift","_type"],"mappings":";;;CAEA,WACI,aACe,SAAXA,EAAoBC,EAAGC,GAEvB,OADAA,EAASA,GAAU,GACZD,EAAEE,QAAQ,SAAU,QAAQD,GAAQC,QAAQ,KAAM,MAAMD,GAMzD,SAAVE,EAAmBC,EAASC,EAAQC,EAAQC,GAKxC,OAJAH,EAAUA,GAAWI,EACrBH,EAASA,GAAUI,EACnBH,EAASA,GAAUI,EACnBH,EAAYA,GALE,iEAMP,CACHI,WAAY,IAAIC,OAAO,OAAOR,EAAQ,OAAOC,EAAO,KAAM,KAC1DQ,OAAQ,IAAID,OAAO,OAAOR,EAAQ,QAAQC,EAAOC,EAAO,KAAM,KAC9DQ,KAAM,IAAIF,OAAO,IAAIR,EAAQ,UAAU,KACvCW,SAAU,IAAIH,OAAO,wCAAwCP,EAAO,KAAM,KAC1EW,SAAU,IAAIJ,OAAO,OAAOL,EAAU,OAAQ,KAC9CU,MAAO,IAAIL,OAAO,MAAMN,EAAO,OAAOA,EAAO,QAAQA,EAAO,UAAUA,EAAO,OAAQ,KACrFY,MAAO,IAAIN,OAAO,MAAMP,EAAO,OAC/Bc,KAAM,eACNC,WAAY,KACZC,KAAM,IAAIT,OAAO,IAAIR,EAAQ,MAvBrC,IAIAI,EAAeT,EAAS,4CA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KAAKvC,KAAOA,KAE3Fb,KAAKoD,MAER,SAAUvC,EAAMtB,GACZ,SAAS8D,EAAO7B,GACZ,IAAIC,EAAK,KAAKlC,EAAEQ,IAAIyB,GAAM,OAC1B9B,OAAOC,UAAU8B,GAAM,WAEnB,OADA6B,MAAM3D,UAAU4D,QAAQvD,KAAKkB,UAAWkC,MACjCvC,EAAKW,GAAMP,MAAMJ,EAAMK,YAGtC,IAAK,IAAIH,EAAE,EAAEV,EAAEd,EAAEC,MAAMwB,OAAQD,EAAEV,EAAGU,IAChCsC,EAAO9D,EAAEC,MAAMuB,IAEnB,IAAIyC,EAAQ3C,EAAKW,KACjBX,EAAKW,KAAO,SAASA,EAAMC,GACvB+B,EAAMhC,EAAMC,GACZ4B,EAAO7B,IAdf,CAgBGX,KAAMA,KAAKtB","file":"Case.plus.min.js"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "case",
|
|
3
|
+
"description": "Extensible string utility for converting, identifying and flipping string case",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"string",
|
|
6
|
+
"case",
|
|
7
|
+
"camel",
|
|
8
|
+
"title",
|
|
9
|
+
"upper",
|
|
10
|
+
"lower",
|
|
11
|
+
"snake",
|
|
12
|
+
"squish",
|
|
13
|
+
"pascal",
|
|
14
|
+
"constant",
|
|
15
|
+
"flip",
|
|
16
|
+
"capitalization",
|
|
17
|
+
"converter"
|
|
18
|
+
],
|
|
19
|
+
"version": "1.6.3",
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "Nathan Bubna",
|
|
22
|
+
"email": "nathan@esha.com",
|
|
23
|
+
"url": "http://www.esha.com/"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">= 0.8.0"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"case.d.ts"
|
|
31
|
+
],
|
|
32
|
+
"main": "dist/Case.js",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "http://github.com/nbubna/Case/issues",
|
|
35
|
+
"email": "nathan@esharesearch.com"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "http://github.com/nbubna/Case.git"
|
|
40
|
+
},
|
|
41
|
+
"license": "(MIT OR GPL-3.0-or-later)",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"test": "grunt qunit"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"grunt": "^1.0.4",
|
|
47
|
+
"grunt-cli": "^1.3.2",
|
|
48
|
+
"grunt-component-build": "^0.5.3",
|
|
49
|
+
"grunt-contrib-clean": "^2.0.0",
|
|
50
|
+
"grunt-contrib-concat": "^1.0.1",
|
|
51
|
+
"grunt-contrib-jshint": "^2.1.0",
|
|
52
|
+
"grunt-contrib-qunit": "^3.1.0",
|
|
53
|
+
"grunt-contrib-uglify": "^4.0.1",
|
|
54
|
+
"grunt-contrib-watch": "^1.1.0",
|
|
55
|
+
"grunt-nuget": "~0.3.1"
|
|
56
|
+
},
|
|
57
|
+
"typings": "case.d.ts"
|
|
58
|
+
}
|
package/package.json
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"jsii-docgen": "^1.8.110",
|
|
62
62
|
"jsii-pacmak": "^1.41.0",
|
|
63
63
|
"json-schema": "^0.3.0",
|
|
64
|
-
"markmac": "^0.1.
|
|
64
|
+
"markmac": "^0.1.77",
|
|
65
65
|
"npm-check-updates": "^11",
|
|
66
66
|
"standard-version": "^9",
|
|
67
67
|
"ts-jest": "^27.0.7",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@iarna/toml": "^2.2.5",
|
|
72
|
+
"case": "^1.6.3",
|
|
72
73
|
"chalk": "^4.1.2",
|
|
73
|
-
"decamelize": "^4.0.0",
|
|
74
74
|
"fs-extra": "^9.1.0",
|
|
75
75
|
"glob": "^7",
|
|
76
76
|
"ini": "^2.0.0",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
},
|
|
83
83
|
"bundledDependencies": [
|
|
84
84
|
"@iarna/toml",
|
|
85
|
+
"case",
|
|
85
86
|
"chalk",
|
|
86
|
-
"decamelize",
|
|
87
87
|
"fs-extra",
|
|
88
88
|
"glob",
|
|
89
89
|
"ini",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"main": "lib/index.js",
|
|
100
100
|
"license": "Apache-2.0",
|
|
101
|
-
"version": "0.
|
|
101
|
+
"version": "0.32.3",
|
|
102
102
|
"jest": {
|
|
103
103
|
"testMatch": [
|
|
104
104
|
"**/__tests__/**/*.ts?(x)",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Convert a camelized string into a lowercased one with a custom separator: `unicornRainbow` → `unicorn_rainbow`.
|
|
3
|
-
|
|
4
|
-
@param string - The camelcase string to decamelize.
|
|
5
|
-
@param separator - The separator to use to put in between the words from `string`. Default: `'_'`.
|
|
6
|
-
|
|
7
|
-
@example
|
|
8
|
-
```
|
|
9
|
-
import decamelize = require('decamelize');
|
|
10
|
-
|
|
11
|
-
decamelize('unicornRainbow');
|
|
12
|
-
//=> 'unicorn_rainbow'
|
|
13
|
-
|
|
14
|
-
decamelize('unicornRainbow', '-');
|
|
15
|
-
//=> 'unicorn-rainbow'
|
|
16
|
-
```
|
|
17
|
-
*/
|
|
18
|
-
declare function decamelize(string: string, separator?: string): string;
|
|
19
|
-
|
|
20
|
-
export = decamelize;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = (text, separator = '_') => {
|
|
4
|
-
if (!(typeof text === 'string' && typeof separator === 'string')) {
|
|
5
|
-
throw new TypeError('The `text` and `separator` arguments should be of type `string`');
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
return text
|
|
9
|
-
.replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu, `$1${separator}$2`)
|
|
10
|
-
.replace(/(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu, `$1${separator}$2`)
|
|
11
|
-
.toLowerCase();
|
|
12
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "decamelize",
|
|
3
|
-
"version": "4.0.0",
|
|
4
|
-
"description": "Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/decamelize",
|
|
7
|
-
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=10"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "xo && ava && tsd"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"index.js",
|
|
21
|
-
"index.d.ts"
|
|
22
|
-
],
|
|
23
|
-
"keywords": [
|
|
24
|
-
"decamelize",
|
|
25
|
-
"decamelcase",
|
|
26
|
-
"camelcase",
|
|
27
|
-
"lowercase",
|
|
28
|
-
"case",
|
|
29
|
-
"dash",
|
|
30
|
-
"hyphen",
|
|
31
|
-
"string",
|
|
32
|
-
"text",
|
|
33
|
-
"convert"
|
|
34
|
-
],
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"ava": "^2.4.0",
|
|
37
|
-
"tsd": "^0.11.0",
|
|
38
|
-
"xo": "^0.24.0"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# decamelize [](https://travis-ci.org/sindresorhus/decamelize)
|
|
2
|
-
|
|
3
|
-
> Convert a camelized string into a lowercased one with a custom separator<br>
|
|
4
|
-
> Example: `unicornRainbow` → `unicorn_rainbow`
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install decamelize
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
const decamelize = require('decamelize');
|
|
16
|
-
|
|
17
|
-
decamelize('unicornRainbow');
|
|
18
|
-
//=> 'unicorn_rainbow'
|
|
19
|
-
|
|
20
|
-
decamelize('unicornRainbow', '-');
|
|
21
|
-
//=> 'unicorn-rainbow'
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## API
|
|
25
|
-
|
|
26
|
-
### decamelize(input, separator?)
|
|
27
|
-
|
|
28
|
-
#### input
|
|
29
|
-
|
|
30
|
-
Type: `string`
|
|
31
|
-
|
|
32
|
-
#### separator
|
|
33
|
-
|
|
34
|
-
Type: `string`\
|
|
35
|
-
Default: `'_'`
|
|
36
|
-
|
|
37
|
-
## Related
|
|
38
|
-
|
|
39
|
-
See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse.
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
<div align="center">
|
|
44
|
-
<b>
|
|
45
|
-
<a href="https://tidelift.com/subscription/pkg/npm-decamelize?utm_source=npm-decamelize&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
|
46
|
-
</b>
|
|
47
|
-
<br>
|
|
48
|
-
<sub>
|
|
49
|
-
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
|
50
|
-
</sub>
|
|
51
|
-
</div>
|