-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappState.json
More file actions
1 lines (1 loc) · 19.3 KB
/
appState.json
File metadata and controls
1 lines (1 loc) · 19.3 KB
1
{"EDITOR_STATE":{"allProjectFiles":{"966a6876-0ddd-4807-bb97-3e12f075ad3c":{"id":"966a6876-0ddd-4807-bb97-3e12f075ad3c","parent":null,"name":"products-api","type":"DIRECTORY","isDirectory":true,"children":["5cbaaf31-0f8b-486c-b0ee-46a57325e0de","7a35c0a4-9fc8-45d8-971a-bc878f7dfcfa","02085451-1eea-4e30-bd15-03e6481155fa","4a570e7b-66ef-4c33-86ae-3700ef416647"],"isRemovable":false,"filePath":"products-api"},"5cbaaf31-0f8b-486c-b0ee-46a57325e0de":{"id":"5cbaaf31-0f8b-486c-b0ee-46a57325e0de","parent":"966a6876-0ddd-4807-bb97-3e12f075ad3c","name":"CreateProductHandler.js","type":"LAMBDA_FILE","isDirectory":false,"children":[],"isRemovable":true,"filePath":"products-api/CreateProductHandler.js","code":"let AWS = require('aws-sdk');\nconst ddb = new AWS.DynamoDB.DocumentClient();\nvar uuid = require('uuid');\nexports.handler = function (event, context, callback) {\n\n\tconsole.log('Request to create a product with: ' + JSON.stringify(event));\n\tlet product = ddb.put({\n\t\tTableName: 'products_table',\n\t\tItem: { \n\t\t\t'id': uuid.v1(), \n\t\t\t'name': event.name, \n\t\t\t'price': event.price \n\t\t},\n\t\tReturnValues: ALL_NEW\n\t}, function (err, data) {\n\t\tif (err) {\n\t\t\tconsole.log('Error creating a product' + err);\n\t\t\tcallback(null, 'Error creating product ' + err);\n\t\t} else {\n\t\t\tconsole.log('Successfully created a product entry with id : ' + product.id);\n\t\t\tcallback(null, JSON.stringify(product));\n\t\t}\n\t});\n\n\tcallback(null, 'Successfully executed');\n}","triggers":[{"resourceName":"apigusEast1CreateProductHandlerproductspost","config":{}}],"config":{"memory":128,"timeout":60,"runtime":"nodejs8.10"},"version":106,"syncVersion":93},"7a35c0a4-9fc8-45d8-971a-bc878f7dfcfa":{"id":"7a35c0a4-9fc8-45d8-971a-bc878f7dfcfa","parent":"966a6876-0ddd-4807-bb97-3e12f075ad3c","name":"ListProductsHandler.js","type":"LAMBDA_FILE","isDirectory":false,"children":[],"isRemovable":true,"filePath":"products-api/ListProductsHandler.js","code":"let AWS = require('aws-sdk');\nexports.handler = function(event, context, callback) {\n\n\n\tcallback(null,'Successfully executed');\n}","triggers":[{"resourceName":"apigusEast1ListProductsHandlerproductsget","config":{}}],"config":{"memory":128,"timeout":60,"runtime":"nodejs8.10"},"version":1},"02085451-1eea-4e30-bd15-03e6481155fa":{"id":"02085451-1eea-4e30-bd15-03e6481155fa","parent":"966a6876-0ddd-4807-bb97-3e12f075ad3c","name":"GetProductHandler.js","type":"LAMBDA_FILE","isDirectory":false,"children":[],"isRemovable":true,"filePath":"products-api/GetProductHandler.js","code":"let AWS = require('aws-sdk');\nexports.handler = function(event, context, callback) {\n\n\n\tcallback(null,'Successfully executed');\n}","triggers":[{"resourceName":"apigusEast1GetProductHandlerproductsidget","config":{}}],"config":{"memory":128,"timeout":60,"runtime":"nodejs8.10"},"version":1},"4a570e7b-66ef-4c33-86ae-3700ef416647":{"id":"4a570e7b-66ef-4c33-86ae-3700ef416647","parent":"966a6876-0ddd-4807-bb97-3e12f075ad3c","name":"DeleteProductHandler.js","type":"LAMBDA_FILE","isDirectory":false,"children":[],"isRemovable":true,"filePath":"products-api/DeleteProductHandler.js","code":"let AWS = require('aws-sdk');\nexports.handler = function(event, context, callback) {\n\n\n\tcallback(null,'Successfully executed');\n}","triggers":[{"resourceName":"apigusEast1DeleteProductHandlerproductsiddelete","config":{}}],"config":{"memory":128,"timeout":60,"runtime":"nodejs8.10"},"version":1}},"rootNode":"966a6876-0ddd-4807-bb97-3e12f075ad3c","openFiles":["5cbaaf31-0f8b-486c-b0ee-46a57325e0de","4a570e7b-66ef-4c33-86ae-3700ef416647","02085451-1eea-4e30-bd15-03e6481155fa","7a35c0a4-9fc8-45d8-971a-bc878f7dfcfa"],"currentFileId":"4a570e7b-66ef-4c33-86ae-3700ef416647","resources":{"apigusEast1CreateProductHandlerproductspost":{"name":"apigusEast1CreateProductHandlerproductspost","type":"API_GATEWAY","config":{"selectedRegion":"us-east-1","apiMode":0,"apiName":"CreateProductHandler","endpointType":"EDGE","resourceMode":0,"resourceName":"products","resourcePath":"/products","restMethod":"POST","proxyIntegration":false,"enableCORS":true,"stageMode":0,"stageName":"dev"},"globallyEditable":true},"ddbproductstable":{"name":"ddbproductstable","type":"DynamoDB","config":{"mode":0,"operation":"put","table":{"arn":"","name":"products_table","partitionKey":"id","partitionKeyType":"S","hasSortKey":false,"sortKey":"","sortKeyType":"S","mode":0},"parameters":{"Key":{},"Item":{"id":"@{uuid.v1()}","name":"@{event.name}","price":"@{event.price}"},"ExpressionAttributeValues":{}},"validator":{"validatableFields":{},"validity":true},"valid":true},"globallyEditable":false},"apigusEast1ListProductsHandlerproductsget":{"name":"apigusEast1ListProductsHandlerproductsget","type":"API_GATEWAY","config":{"selectedRegion":"us-east-1","apiMode":0,"apiName":"ListProductsHandler","endpointType":"EDGE","resourceMode":0,"resourceName":"products","resourcePath":"/products","restMethod":"GET","proxyIntegration":false,"enableCORS":true,"stageMode":0,"stageName":"dev"},"globallyEditable":true},"apigusEast1GetProductHandlerproductsidget":{"name":"apigusEast1GetProductHandlerproductsidget","type":"API_GATEWAY","config":{"selectedRegion":"us-east-1","apiMode":0,"apiName":"GetProductHandler","endpointType":"EDGE","resourceMode":0,"resourceName":"products/{id}","resourcePath":"/products/{id}","restMethod":"GET","proxyIntegration":true,"enableCORS":true,"stageMode":0,"stageName":"dev"},"globallyEditable":true},"apigusEast1DeleteProductHandlerproductsiddelete":{"name":"apigusEast1DeleteProductHandlerproductsiddelete","type":"API_GATEWAY","config":{"selectedRegion":"us-east-1","apiMode":0,"apiName":"DeleteProductHandler","endpointType":"EDGE","resourceMode":0,"resourceName":"products/{id}","resourcePath":"/products/{id}","restMethod":"DELETE","proxyIntegration":true,"enableCORS":true,"stageMode":0,"stageName":"dev"},"globallyEditable":true}},"envVariables":[{"lambdaId":"all","varKey":"SIGMA_AWS_ACC_ID","varValue":"","editable":false,"isEditable":false}],"packageJSON":{"dependencies":{"aws-sdk":{"name":"aws-sdk","version":"2.176.0","notRemovable":true},"uuid":{"name":"uuid","downloadsLast30Days":38717673,"downloadsRatio":0.1879029551556176,"humanDownloadsLast30Days":"38.7m","popular":true,"version":"3.2.1","versions":{"0.0.1":"2011-03-31T08:12:51.801Z","0.0.2":"2011-03-31T08:12:51.801Z","1.4.0":"2013-02-19T22:28:10.376Z","1.4.1":"2013-03-14T05:25:04.735Z","1.4.2":"2014-09-25T09:03:34.083Z","2.0.0":"2014-09-29T09:03:24.612Z","2.0.1":"2014-09-29T09:16:55.228Z","2.0.2":"2016-04-13T07:37:23.788Z","2.0.3":"2016-09-18T21:03:38.127Z","3.0.0":"2016-11-18T05:55:37.542Z","3.0.1":"2016-11-29T07:18:07.016Z","3.1.0":"2017-06-16T17:54:51.877Z","3.2.0":"2018-01-16T14:44:50.639Z","3.2.1":"2018-01-16T17:44:57.871Z"},"tags":{"latest":"3.2.1"},"description":"RFC4122 (v1, v4, and v5) UUIDs","dependencies":{},"devDependencies":{"eslint":"4.5.0","mocha":"3.1.2","runmd":"1.0.1","standard-version":"4.2.0"},"repository":{"url":"https://github.com/kelektiv/node-uuid","project":"node-uuid","user":"kelektiv","host":"github.com","path":"","head":"ce7d3176fc927ab83b4e29b8d5a37b7243ce3360","branch":"ce7d3176fc927ab83b4e29b8d5a37b7243ce3360"},"githubRepo":{"user":"kelektiv","project":"node-uuid","path":"","head":"ce7d3176fc927ab83b4e29b8d5a37b7243ce3360"},"gitHead":"ce7d3176fc927ab83b4e29b8d5a37b7243ce3360","readme":"<!--\n -- This file is auto-generated from README_js.md. Changes should be made there.\n -->\n\n# uuid [](http://travis-ci.org/kelektiv/node-uuid) #\n\nSimple, fast generation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS.\n\nFeatures:\n\n* Support for version 1, 3, 4 and 5 UUIDs\n* Cross-platform\n* Uses cryptographically-strong random number APIs (when available)\n* Zero-dependency, small footprint (... but not [this small](https://gist.github.com/982883))\n\n[**Deprecation warning**: The use of `require('uuid')` is deprecated and will not be\nsupported after version 3.x of this module. Instead, use `require('uuid/[v1|v3|v4|v5]')` as shown in the examples below.]\n\n## Quickstart - CommonJS (Recommended)\n\n```shell\nnpm install uuid\n```\n\nThen generate your uuid version of choice ...\n\nVersion 1 (timestamp):\n\n```javascript\nconst uuidv1 = require('uuid/v1');\nuuidv1(); // ⨠'f64f2940-fae4-11e7-8c5f-ef356f279131'\n\n```\n\nVersion 3 (namespace):\n\n```javascript\nconst uuidv3 = require('uuid/v3');\n\n// ... using predefined DNS namespace (for domain names)\nuuidv3('hello.example.com', uuidv3.DNS); // ⨠'9125a8dc-52ee-365b-a5aa-81b0b3681cf6'\n\n// ... using predefined URL namespace (for, well, URLs)\nuuidv3('http://example.com/hello', uuidv3.URL); // ⨠'c6235813-3ba4-3801-ae84-e0a6ebb7d138'\n\n// ... using a custom namespace\n//\n// Note: Custom namespaces should be a UUID string specific to your application!\n// E.g. the one here was generated using this modules `uuid` CLI.\nconst MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';\nuuidv3('Hello, World!', MY_NAMESPACE); // ⨠'e8b5a51d-11c8-3310-a6ab-367563f20686'\n\n```\n\nVersion 4 (random):\n\n```javascript\nconst uuidv4 = require('uuid/v4');\nuuidv4(); // ⨠'416ac246-e7ac-49ff-93b4-f7e94d997e6b'\n\n```\n\nVersion 5 (namespace):\n\n```javascript\nconst uuidv5 = require('uuid/v5');\n\n// ... using predefined DNS namespace (for domain names)\nuuidv5('hello.example.com', uuidv5.DNS); // ⨠'fdda765f-fc57-5604-a269-52a7df8164ec'\n\n// ... using predefined URL namespace (for, well, URLs)\nuuidv5('http://example.com/hello', uuidv5.URL); // ⨠'3bbcee75-cecc-5b56-8031-b6641c1ed1f1'\n\n// ... using a custom namespace\n//\n// Note: Custom namespaces should be a UUID string specific to your application!\n// E.g. the one here was generated using this modules `uuid` CLI.\nconst MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';\nuuidv5('Hello, World!', MY_NAMESPACE); // ⨠'630eb68f-e0fa-5ecc-887a-7c7a62614681'\n\n```\n\n## Quickstart - Browser-ready Versions\n\nBrowser-ready versions of this module are available via [wzrd.in](https://github.com/jfhbrook/wzrd.in).\n\nFor version 1 uuids:\n\n```html\n<script src=\"http://wzrd.in/standalone/uuid%2Fv1@latest\"></script>\n<script>\nuuidv1(); // -> v1 UUID\n</script>\n```\n\nFor version 3 uuids:\n\n```html\n<script src=\"http://wzrd.in/standalone/uuid%2Fv3@latest\"></script>\n<script>\nuuidv3('http://example.com/hello', uuidv3.URL); // -> v3 UUID\n</script>\n```\n\nFor version 4 uuids:\n\n```html\n<script src=\"http://wzrd.in/standalone/uuid%2Fv4@latest\"></script>\n<script>\nuuidv4(); // -> v4 UUID\n</script>\n```\n\nFor version 5 uuids:\n\n```html\n<script src=\"http://wzrd.in/standalone/uuid%2Fv5@latest\"></script>\n<script>\nuuidv5('http://example.com/hello', uuidv5.URL); // -> v5 UUID\n</script>\n```\n\n## API\n\n### Version 1\n\n```javascript\nconst uuidv1 = require('uuid/v1');\n\n// Incantations\nuuidv1();\nuuidv1(options);\nuuidv1(options, buffer, offset);\n```\n\nGenerate and return a RFC4122 v1 (timestamp-based) UUID.\n\n* `options` - (Object) Optional uuid state to apply. Properties may include:\n\n * `node` - (Array) Node id as Array of 6 bytes (per 4.1.6). Default: Randomly generated ID. See note 1.\n * `clockseq` - (Number between 0 - 0x3fff) RFC clock sequence. Default: An internally maintained clockseq is used.\n * `msecs` - (Number) Time in milliseconds since unix Epoch. Default: The current time is used.\n * `nsecs` - (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if `msecs` is unspecified. Default: internal uuid counter is used, as per 4.2.1.2.\n\n* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.\n* `offset` - (Number) Starting index in `buffer` at which to begin writing.\n\nReturns `buffer`, if specified, otherwise the string form of the UUID\n\nNote: The <node> id is generated guaranteed to stay constant for the lifetime of the current JS runtime. (Future versions of this module may use persistent storage mechanisms to extend this guarantee.)\n\nExample: Generate string UUID with fully-specified options\n\n```javascript\nconst v1options = {\n node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab],\n clockseq: 0x1234,\n msecs: new Date('2011-11-01').getTime(),\n nsecs: 5678\n};\nuuidv1(v1options); // ⨠'710b962e-041c-11e1-9234-0123456789ab'\n\n```\n\nExample: In-place generation of two binary IDs\n\n```javascript\n// Generate two ids in an array\nconst arr = new Array();\nuuidv1(null, arr, 0); // ⨠[ 246, 87, 141, 176, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49 ]\nuuidv1(null, arr, 16); // ⨠[ 246, 87, 141, 176, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49, 246, 87, 180, 192, 250, 228, 17, 231, 146, 52, 239, 53, 111, 39, 145, 49 ]\n\n```\n\n### Version 3\n\n```javascript\nconst uuidv3 = require('uuid/v3');\n\n// Incantations\nuuidv3(name, namespace);\nuuidv3(name, namespace, buffer);\nuuidv3(name, namespace, buffer, offset);\n```\n\nGenerate and return a RFC4122 v3 UUID.\n\n* `name` - (String | Array[]) \"name\" to create UUID with\n* `namespace` - (String | Array[]) \"namespace\" UUID either as a String or Array[16] of byte values\n* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.\n* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0\n\nReturns `buffer`, if specified, otherwise the string form of the UUID\n\nExample:\n\n```javascript\nuuidv3('hello world', MY_NAMESPACE); // ⨠'042ffd34-d989-321c-ad06-f60826172424'\n\n```\n\n### Version 4\n\n```javascript\nconst uuidv4 = require('uuid/v4')\n\n// Incantations\nuuidv4();\nuuidv4(options);\nuuidv4(options, buffer, offset);\n```\n\nGenerate and return a RFC4122 v4 UUID.\n\n* `options` - (Object) Optional uuid state to apply. Properties may include:\n * `random` - (Number[16]) Array of 16 numbers (0-255) to use in place of randomly generated values\n * `rng` - (Function) Random # generator function that returns an Array[16] of byte values (0-255)\n* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.\n* `offset` - (Number) Starting index in `buffer` at which to begin writing.\n\nReturns `buffer`, if specified, otherwise the string form of the UUID\n\nExample: Generate string UUID with predefined `random` values\n\n```javascript\nconst v4options = {\n random: [\n 0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea,\n 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36\n ]\n};\nuuidv4(v4options); // ⨠'109156be-c4fb-41ea-b1b4-efe1671c5836'\n\n```\n\nExample: Generate two IDs in a single buffer\n\n```javascript\nconst buffer = new Array();\nuuidv4(null, buffer, 0); // ⨠[ 175, 10, 162, 184, 217, 255, 77, 139, 161, 80, 41, 200, 70, 238, 196, 250 ]\nuuidv4(null, buffer, 16); // ⨠[ 175, 10, 162, 184, 217, 255, 77, 139, 161, 80, 41, 200, 70, 238, 196, 250, 75, 162, 105, 153, 48, 238, 77, 58, 169, 56, 158, 207, 106, 160, 47, 239 ]\n\n```\n\n### Version 5\n\n```javascript\nconst uuidv5 = require('uuid/v5');\n\n// Incantations\nuuidv5(name, namespace);\nuuidv5(name, namespace, buffer);\nuuidv5(name, namespace, buffer, offset);\n```\n\nGenerate and return a RFC4122 v5 UUID.\n\n* `name` - (String | Array[]) \"name\" to create UUID with\n* `namespace` - (String | Array[]) \"namespace\" UUID either as a String or Array[16] of byte values\n* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.\n* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0\n\nReturns `buffer`, if specified, otherwise the string form of the UUID\n\nExample:\n\n```javascript\nuuidv5('hello world', MY_NAMESPACE); // ⨠'9f282611-e0fd-5650-8953-89c8e342da0b'\n\n```\n\n## Command Line\n\nUUIDs can be generated from the command line with the `uuid` command.\n\n```shell\n$ uuid\nddeb27fb-d9a0-4624-be4d-4615062daed4\n\n$ uuid v1\n02d37060-d446-11e7-a9fa-7bdae751ebe1\n```\n\nType `uuid --help` for usage details\n\n## Testing\n\n```shell\nnpm test\n```\n\n----\nMarkdown generated from [README_js.md](README_js.md) by [](https://github.com/broofa/runmd)","owner":{"name":"kelektiv","avatar":"https://github.com/kelektiv.png","link":"https://github.com/kelektiv"},"deprecated":false,"homepage":null,"license":"MIT","keywords":["uuid","guid","rfc4122"],"computedKeywords":[],"computedMetadata":{},"created":1301559171801,"modified":1523946160248,"lastPublisher":{"name":"broofa","email":"robert@broofa.com","avatar":"https://gravatar.com/avatar/2edce239a83772318425ae41aee4f637","link":"https://www.npmjs.com/~broofa"},"owners":[{"name":"broofa","email":"robert@broofa.com","avatar":"https://gravatar.com/avatar/2edce239a83772318425ae41aee4f637","link":"https://www.npmjs.com/~broofa"},{"name":"defunctzombie","email":"shtylman@gmail.com","avatar":"https://gravatar.com/avatar/eb0f066fba69ae24fd346fa097f82d61","link":"https://www.npmjs.com/~defunctzombie"},{"name":"vvo","email":"vincent.voyer@gmail.com","avatar":"https://gravatar.com/avatar/667176b96540d167eb74f473c9aea5f7","link":"https://www.npmjs.com/~vvo"}],"lastCrawl":"2018-04-18T11:04:00.761Z","_searchInternal":{"concatenatedName":"uuid","popularName":"uuid","downloadsMagnitude":8},"dependents":6206,"humanDependents":"6.2k","changelogFilename":"https://raw.githubusercontent.com/kelektiv/node-uuid/ce7d3176fc927ab83b4e29b8d5a37b7243ce3360/CHANGELOG.md","objectID":"uuid","_highlightResult":{"name":{"value":"<em>uuid</em>","matchLevel":"full","fullyHighlighted":true,"matchedWords":["uuid"]},"description":{"value":"RFC4122 (v1, v4, and v5) <em>UUID</em>s","matchLevel":"full","fullyHighlighted":false,"matchedWords":["uuid"]},"owner":{"name":{"value":"kelektiv","matchLevel":"none","matchedWords":[]}},"keywords":[{"value":"<em>uuid</em>","matchLevel":"full","fullyHighlighted":true,"matchedWords":["uuid"]},{"value":"guid","matchLevel":"none","matchedWords":[]},{"value":"rfc4122","matchLevel":"none","matchedWords":[]}],"owners":[{"name":{"value":"broofa","matchLevel":"none","matchedWords":[]}},{"name":{"value":"defunctzombie","matchLevel":"none","matchedWords":[]}},{"name":{"value":"vvo","matchLevel":"none","matchedWords":[]}}],"_searchInternal":{"concatenatedName":{"value":"<em>uuid</em>","matchLevel":"full","fullyHighlighted":true,"matchedWords":["uuid"]},"popularName":{"value":"<em>uuid</em>","matchLevel":"full","fullyHighlighted":true,"matchedWords":["uuid"]}}},"types":"// Type definitions for uuid 3.4\r\n// Project: https://github.com/kelektiv/node-uuid\r\n// Definitions by: Oliver Hoffmann <https://github.com/iamolivinius>\r\n// Felipe Ochoa <https://github.com/felipeochoa>\r\n// Chris Barth <https://github.com/cjbarth>\r\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\r\n// TypeScript Version: 2.2\r\n\r\n// The version number has been artificially set to 3.4, instead of 3.0,\r\n// because of the existing uuid-js npm types package being at 3.3.28,\r\n// meaning that `npm install @types/uuid` was installing the typings for uuid-js, not this\r\n\r\nimport { v1, v4, v5 } from './interfaces';\r\n\r\ninterface UuidStatic {\r\n v1: v1;\r\n v4: v4;\r\n v5: v5;\r\n}\r\n\r\ndeclare const uuid: UuidStatic & v4;\r\nexport = uuid;\r\n","typesLocation":"https://unpkg.com/@types/uuid/index.d.ts"}}},"lambdaId":"5cbaaf31-0f8b-486c-b0ee-46a57325e0de","additionalFiles":[]},"PROJECT_META":{"projectName":"products-api","projectDescription":"Serverless REST API for Products saved to a DynamoDB table","projectVersion":"1.0.0","projectRegion":"us-east-1","repoName":"products-api","repoUrl":"https://github.com/asankha/products-api","lastSave":1525169949661}}