{"action":"created","issue":{"url":"https://api.github.com/repos/stampit-org/stampit/issues/134","labels_url":"https://api.github.com/repos/stampit-org/stampit/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/stampit-org/stampit/issues/134/comments","events_url":"https://api.github.com/repos/stampit-org/stampit/issues/134/events","html_url":"https://github.com/stampit-org/stampit/issues/134","id":91540524,"number":134,"title":"Make stamp.fixed safer","user":{"login":"koresar","id":1622575,"avatar_url":"https://avatars.githubusercontent.com/u/1622575?v=3","gravatar_id":"","url":"https://api.github.com/users/koresar","html_url":"https://github.com/koresar","followers_url":"https://api.github.com/users/koresar/followers","following_url":"https://api.github.com/users/koresar/following{/other_user}","gists_url":"https://api.github.com/users/koresar/gists{/gist_id}","starred_url":"https://api.github.com/users/koresar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koresar/subscriptions","organizations_url":"https://api.github.com/users/koresar/orgs","repos_url":"https://api.github.com/users/koresar/repos","events_url":"https://api.github.com/users/koresar/events{/privacy}","received_events_url":"https://api.github.com/users/koresar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-28T01:40:16Z","updated_at":"2015-06-28T02:23:46Z","closed_at":null,"body":"Since `stamp.fixed` object is exposed to the wild we should make sure stampit doesn't behave unexpectedly when someone decides to change it. For example:\r\n```js\r\nconst stamp = stampit();\r\nstamp.fixed.refs = /^hahaha/;\r\nstamp.fixed.methods = [function hahaha() {}];\r\nstamp.fixed.init = 42;\r\nstamp.create(); // here might be problems!\r\n```\r\n\r\nWe should validate the `.fixed` object each time it's used internally.\r\nPlaces to validate: \r\n* All chaining methods.\r\n* All all `stampit.` shortcut methods.\r\n* The factory itself.\r\n\r\nThe functions where the validations should take place: `cloneAndExtend`, `compose`, `shortcutMethod` and `Factory`."},"comment":{"url":"https://api.github.com/repos/stampit-org/stampit/issues/comments/116183729","html_url":"https://github.com/stampit-org/stampit/issues/134#issuecomment-116183729","issue_url":"https://api.github.com/repos/stampit-org/stampit/issues/134","id":116183729,"user":{"login":"koresar","id":1622575,"avatar_url":"https://avatars.githubusercontent.com/u/1622575?v=3","gravatar_id":"","url":"https://api.github.com/users/koresar","html_url":"https://github.com/koresar","followers_url":"https://api.github.com/users/koresar/followers","following_url":"https://api.github.com/users/koresar/following{/other_user}","gists_url":"https://api.github.com/users/koresar/gists{/gist_id}","starred_url":"https://api.github.com/users/koresar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koresar/subscriptions","organizations_url":"https://api.github.com/users/koresar/orgs","repos_url":"https://api.github.com/users/koresar/repos","events_url":"https://api.github.com/users/koresar/events{/privacy}","received_events_url":"https://api.github.com/users/koresar/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T02:23:46Z","updated_at":"2015-06-28T02:23:46Z","body":"I agree.\r\n\r\n> I really think a warning is all that is needed.\r\n\r\nWhat sort of warning? a README warning? A runtime console.log warning? An exception in a debug mode?"}}