Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
BeebuddyUtil
/
dma-common-backend
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8fd71ec8
authored
Oct 15, 2020
by
Beebuddy Builder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial v2
1 parent
0f2cecc1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
11 deletions
.babelrc
dist/index.js
dist/src/index.js
.babelrc
0 → 100644
View file @
8fd71ec
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-optional-chaining"]
}
\ No newline at end of file
dist/index.js
View file @
8fd71ec
"use strict"
;
module
.
exports
=
require
(
'./dist'
);
module
.
exports
=
require
(
'./dist'
);
\ No newline at end of file
dist/src/index.js
View file @
8fd71ec
export
class
Utils
{
"use strict"
;
/**
* @function
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
* @description Testasdfasdfasdf
value
:
true
* @param {String} str
});
* @returns {String}
exports
.
Utils
=
void
0
;
*/
static
printf
(
str
)
{
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"Cannot call a class as a function"
);
}
}
return
`=======>
${
str
}
<=======`
;
function
_defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"value"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
function
_createClass
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
_defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
_defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
}
var
Utils
=
/*#__PURE__*/
function
()
{
function
Utils
()
{
_classCallCheck
(
this
,
Utils
);
}
}
}
_createClass
(
Utils
,
null
,
[{
\ No newline at end of file
key
:
"printf"
,
/**
* @function
* @description Testasdfasdfasdf
* @param {String} str
* @returns {String}
*/
value
:
function
printf
(
str
)
{
return
"=======>"
.
concat
(
str
,
"<======="
);
}
}]);
return
Utils
;
}();
exports
.
Utils
=
Utils
;
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment