{"action":"created","comment":{"url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments/72435539","id":72435539,"diff_hunk":"@@ -1,140 +1,140 @@\n-# Modules\n+# Модулі\n \n-One of the most error-prone and confusing aspects of JavaScript has long been the \"shared everything\" approach to loading code. Whereas other languages have concepts such as packages, JavaScript lagged behind, and everything defined in every file shared the same global scope. As web applications became more complex and the amount of JavaScript used grew, the \"shared everything\" approach began to show problems with naming collisions, security concerns, and more. One of the goals of ECMAScript 6 was to solve this problem and bring some order into JavaScript applications. That's where modules come in.\n+Одним з найбільш схильних до помилок і заплутаних аспектів JavaScript вже давно є \"shared everything\" підхід до завантаження коду. У той час як інші мови мають такі поняття, як пакети, JavaScript відстав, і все, що визначається в кожному файлі поділяє єдину глобальну область видимості. В той час, коли веб-додатки стали більш складними, а кількість використання JavaScript виросла, \"shared everything\" підхід почав виявляти проблеми з конфліктами імен, проблеми безпеки та багато іншого. Однією з цілей ECMAScript 6 було вирішення цієї проблеми, і наведення порядку в додатках JavaScript. Ось тут і з’являються модулі.\n \n-## What are Modules?\n+## Що таке модулі?\n \n-*Modules* are JavaScript files that are loaded in a special mode (as opposed to *scripts*, which are loaded in the original way JavaScript worked). At the time of my writing, neither browsers nor Node.js have a way to natively load ECMAScript 6 modules, but both have indicated that there will need to be some sort of opt-in to do so. The reason this opt-in is necessary is because module files have very different semantics than non-module files:\n+*Модулі* — це JavaScript файли, які завантажені спеціальним чином (на відміну від *скриптів*, які завантажуються звичайним для JavaScript чином). На час мого написання, ані браузери, ані Node.js не мали засобів для завантаження модулів ECMAScript 6, але обидва вказували, що повинна бути певна можливість це робити. Причина необхідності цієї опції в тому, що файли модулів мають досить відмінну від файлів не-модулів семантику:","path":"manuscript/13-Modules.md","position":null,"original_position":11,"commit_id":"b356e57df87ac6f8be08b874d02cdaaf34df6efc","original_commit_id":"b356e57df87ac6f8be08b874d02cdaaf34df6efc","user":{"login":"NastyaGentsar","id":20544857,"avatar_url":"https://avatars.githubusercontent.com/u/20544857?v=3","gravatar_id":"","url":"https://api.github.com/users/NastyaGentsar","html_url":"https://github.com/NastyaGentsar","followers_url":"https://api.github.com/users/NastyaGentsar/followers","following_url":"https://api.github.com/users/NastyaGentsar/following{/other_user}","gists_url":"https://api.github.com/users/NastyaGentsar/gists{/gist_id}","starred_url":"https://api.github.com/users/NastyaGentsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NastyaGentsar/subscriptions","organizations_url":"https://api.github.com/users/NastyaGentsar/orgs","repos_url":"https://api.github.com/users/NastyaGentsar/repos","events_url":"https://api.github.com/users/NastyaGentsar/events{/privacy}","received_events_url":"https://api.github.com/users/NastyaGentsar/received_events","type":"User","site_admin":false},"body":"Модулі — це JavaScript файли, завантажені спеціальним чином (на відміну від скриптів, які завантажуються звичайним для JavaScript чином). \r\nНеобхідність цієї опції в тому, що файли модулів мають дуже відмінну від немодульних файлів семантику:","created_at":"2016-07-27T13:10:41Z","updated_at":"2016-07-27T13:10:41Z","html_url":"https://github.com/denysdovhan/understandinges6ua/pull/25#discussion_r72435539","pull_request_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments/72435539"},"html":{"href":"https://github.com/denysdovhan/understandinges6ua/pull/25#discussion_r72435539"},"pull_request":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/25","id":65145382,"html_url":"https://github.com/denysdovhan/understandinges6ua/pull/25","diff_url":"https://github.com/denysdovhan/understandinges6ua/pull/25.diff","patch_url":"https://github.com/denysdovhan/understandinges6ua/pull/25.patch","issue_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/25","number":25,"state":"open","locked":false,"title":"Translate “13 Modules”","user":{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false},"body":"Translation of #13.","created_at":"2016-04-04T13:32:51Z","updated_at":"2016-07-27T13:10:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68ca3ab7c2bc9d20b74050746fa702938068630e","assignee":{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false},"assignees":[{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/25/commits","review_comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/25/comments","review_comment_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments{/number}","comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/25/comments","statuses_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/b356e57df87ac6f8be08b874d02cdaaf34df6efc","head":{"label":"victorpavlov:13-Modules","ref":"13-Modules","sha":"b356e57df87ac6f8be08b874d02cdaaf34df6efc","user":{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false},"repo":{"id":49984180,"name":"understandinges6ua","full_name":"victorpavlov/understandinges6ua","owner":{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorpavlov/understandinges6ua","description":"Ukrainian translation of “Understanding ES6” by @nzakas","fork":true,"url":"https://api.github.com/repos/victorpavlov/understandinges6ua","forks_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/forks","keys_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/teams","hooks_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/hooks","issue_events_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/issues/events{/number}","events_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/events","assignees_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/assignees{/user}","branches_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/branches{/branch}","tags_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/tags","blobs_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/statuses/{sha}","languages_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/languages","stargazers_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/stargazers","contributors_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/contributors","subscribers_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/subscribers","subscription_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/subscription","commits_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/contents/{+path}","compare_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/merges","archive_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/downloads","issues_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/issues{/number}","pulls_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/pulls{/number}","milestones_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/milestones{/number}","notifications_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/labels{/name}","releases_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/releases{/id}","deployments_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/deployments","created_at":"2016-01-19T21:25:11Z","updated_at":"2016-01-19T10:19:15Z","pushed_at":"2016-07-12T09:43:41Z","git_url":"git://github.com/victorpavlov/understandinges6ua.git","ssh_url":"git@github.com:victorpavlov/understandinges6ua.git","clone_url":"https://github.com/victorpavlov/understandinges6ua.git","svn_url":"https://github.com/victorpavlov/understandinges6ua","homepage":"http://understandinges6.denysdovhan.com","size":753,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"denysdovhan:master","ref":"master","sha":"148f3bbd927b0a74cae94344e6f402c04c97e4f8","user":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"repo":{"id":49322520,"name":"understandinges6ua","full_name":"denysdovhan/understandinges6ua","owner":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/denysdovhan/understandinges6ua","description":"Ukrainian translation of “Understanding ES6” by @nzakas","fork":false,"url":"https://api.github.com/repos/denysdovhan/understandinges6ua","forks_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/forks","keys_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/teams","hooks_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/hooks","issue_events_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/events{/number}","events_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/events","assignees_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/assignees{/user}","branches_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/branches{/branch}","tags_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/tags","blobs_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/refs{/sha}","trees_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/{sha}","languages_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/languages","stargazers_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/stargazers","contributors_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/contributors","subscribers_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/subscribers","subscription_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/subscription","commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/commits{/sha}","git_commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/commits{/sha}","comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/comments{/number}","issue_comment_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/comments{/number}","contents_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/contents/{+path}","compare_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/merges","archive_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/downloads","issues_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues{/number}","pulls_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls{/number}","milestones_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/milestones{/number}","notifications_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/labels{/name}","releases_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/releases{/id}","deployments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/deployments","created_at":"2016-01-09T11:57:24Z","updated_at":"2016-05-04T15:52:42Z","pushed_at":"2016-07-26T15:24:25Z","git_url":"git://github.com/denysdovhan/understandinges6ua.git","ssh_url":"git@github.com:denysdovhan/understandinges6ua.git","clone_url":"https://github.com/denysdovhan/understandinges6ua.git","svn_url":"https://github.com/denysdovhan/understandinges6ua","homepage":"http://understandinges6.denysdovhan.com","size":2577,"stargazers_count":22,"watchers_count":22,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":11,"forks":8,"open_issues":11,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/25"},"html":{"href":"https://github.com/denysdovhan/understandinges6ua/pull/25"},"issue":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/25"},"comments":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/b356e57df87ac6f8be08b874d02cdaaf34df6efc"}}}}
{"actor":{"display_login":"NastyaGentsar"}}