Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
z = _objectSpread({
x
}, y);
z = {
x,
w: _objectSpread({}, y)
}; // babel-plugin-transform-class-properties
// https://github.com/babel/babel/blob/master/packages/babel-plugin-transform-class-properties/test/fixtures/loose/instance/actual.js
class Bar {
constructor() {
this.bar = "foo";
}
}
registerDecorators(Bar, {
fields: ["bar"]
});
export { Bar, Test, literal, obj1, obj2, t, test };
num = __callKey2(Math, "pow", num, 2);
__callKey1(console, "log", num); // babel-plugin-transform-object-rest-spread
// https://github.com/babel/babel/blob/6.x/packages/babel-plugin-transform-object-rest-spread/test/fixtures/object-spread/assignment/actual.js
z = _objectSpread({
x: x
}, y);
z = {
x: x,
w: _objectSpread({}, y)
}; // babel-plugin-transform-class-properties
// https://github.com/babel/babel/blob/master/packages/babel-plugin-transform-class-properties/test/fixtures/loose/instance/actual.js
var Bar = function Bar() {
_classCallCheck(this, Bar);
__setKey(this, "bar", "foo");
};
registerDecorators(Bar, {
fields: ["bar"]
});
export { Bar, Test, literal, obj1, obj2, t, test };
class Metadata extends LightningElement {
constructor(...args) {
super(...args);
this.publicProp = void 0;
this.wiredProp = void 0;
}
publicMethod(name) {
return "hello" + name;
}
wiredMethod(result) {}
}
registerDecorators(Metadata, {
publicProps: {
publicProp: {
config: 0
}
},
publicMethods: ["publicMethod"],
wire: {
wiredProp: {
adapter: getTodo,
params: {},
static: {}
},
wiredMethod: {
adapter: getHello,
params: {
name: "publicProp"
var _tmpl = registerTemplate(tmpl);
tmpl.stylesheets = [];
tmpl.stylesheetTokens = {
hostAttribute: "x-typescript_typescript-host",
shadowAttribute: "x-typescript_typescript"
};
const Test = 1;
class ClassAndTemplate extends LightningElement {
constructor() {
super();
this.t = Test;
this.counter = 0;
}
}
registerDecorators(ClassAndTemplate, {
fields: ["t"]
});
var typescript = registerComponent(ClassAndTemplate, {
tmpl: _tmpl
});
export default typescript;