{"id":15535334,"url":"https://github.com/stefanpenner/compiled_class","last_synced_at":"2026-05-06T05:30:18.986Z","repository":{"id":16907877,"uuid":"19668915","full_name":"stefanpenner/compiled_class","owner":"stefanpenner","description":null,"archived":false,"fork":false,"pushed_at":"2014-05-12T02:54:30.000Z","size":372,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T23:02:55.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefanpenner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-11T14:54:09.000Z","updated_at":"2021-10-23T16:16:25.000Z","dependencies_parsed_at":"2022-09-07T10:22:57.149Z","dependency_job_id":null,"html_url":"https://github.com/stefanpenner/compiled_class","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpenner%2Fcompiled_class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpenner%2Fcompiled_class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpenner%2Fcompiled_class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanpenner%2Fcompiled_class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanpenner","download_url":"https://codeload.github.com/stefanpenner/compiled_class/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093150,"owners_count":19746778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T11:46:02.704Z","updated_at":"2026-05-06T05:30:18.954Z","avatar_url":"https://github.com/stefanpenner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"compiled_class\n==============\n\nstill a spike, still WIP, don't use this or expect it to work\n\ninput:\n------\n\n```js\nclass Controller extends Foo {\n  constructor(options) {\n\n    this.fullName = 'stefan';\n    this.lastName = 'penner';\n\n    super(options);\n  }\n\n  update(camera) {\n    super.update(camera, foo);\n    super.orange(camera, foo);\n  }\n\n  apple(camera) {\n    super.apple.apply(this, [camera, foo]);\n  }\n\n  orange () {\n    super.orange.apply(this, arguments);\n  }\n\n  foo () {\n    super.orange.bar(arguments);\n  }\n\n\n  //+property('fullName', 'lastName');\n  fullName() {\n    return [\n      this.fullName,\n      this.lastName\n    ].compact().join(' ');\n  }\n};\n\n```\n\noutput:\n-------\n\n```js\nfunction Controller(options) {\n    this.fullName = 'stefan';\n    this.lastName = 'penner';\n    super(options); // wrong still, should be Foo.call(this, options);\n    super.apply(this, arguments); // wrong still, should be Foo.apply(this, arguments);\n} \n\nController.prototype = Object.create(Foo);\n\nController.prototype.constructor = Controller;\n\nController.prototype.update = function (camera) {\n    this.constructor.prototype.update.call(this, camera, foo);\n    this.constructor.prototype.orange.call(this, camera, foo);\n};\nController.prototype.apple = function (camera) {\n    this.constructor.prototype.apple.apply(this, [\n        camera,\n        foo\n    ]);\n};\nController.prototype.orange = function () {\n    this.constructor.prototype.orange.apply(this, arguments);\n};\nController.prototype.foo = function () {\n    this.constructor.prototype.orange.bar(arguments);\n};\nController.prototype.fullName = function () {\n    return [\n        this.fullName,\n        this.lastName\n    ].compact().join(' ');\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanpenner%2Fcompiled_class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanpenner%2Fcompiled_class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanpenner%2Fcompiled_class/lists"}