@pgpm/faker 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -724,15 +724,11 @@ $$
724
724
  LANGUAGE 'plpgsql' VOLATILE;
725
725
 
726
726
  CREATE FUNCTION faker.attachment(mime text default null) returns attachment as $$
727
- DECLARE
728
- obj jsonb = '{}'::jsonb;
729
727
  BEGIN
730
728
  IF (mime IS NULL) THEN
731
729
  mime = faker.mime();
732
730
  END IF;
733
- obj = jsonb_set(obj, '{url}', to_jsonb(faker.url(mime)::text));
734
- obj = jsonb_set(obj, '{mime}', to_jsonb(mime));
735
- RETURN obj;
731
+ RETURN faker.url(mime);
736
732
  END;
737
733
  $$
738
734
  LANGUAGE 'plpgsql' VOLATILE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/faker",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Fake data generation utilities for testing and development",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -21,8 +21,8 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@pgpm/types": "0.12.0",
25
- "@pgpm/verify": "0.12.0"
24
+ "@pgpm/types": "0.13.0",
25
+ "@pgpm/verify": "0.13.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "pgpm": "^0.2.0"
@@ -35,5 +35,5 @@
35
35
  "bugs": {
36
36
  "url": "https://github.com/launchql/pgpm-modules/issues"
37
37
  },
38
- "gitHead": "b106c3afcb5152f177f411bf89bbef392fbd2375"
38
+ "gitHead": "e7de11be3a2fd806929adf48acc556d812c75aa6"
39
39
  }
@@ -677,15 +677,11 @@ END;
677
677
  $EOFCODE$ LANGUAGE plpgsql VOLATILE;
678
678
 
679
679
  CREATE FUNCTION faker.attachment(mime text DEFAULT NULL) RETURNS attachment AS $EOFCODE$
680
- DECLARE
681
- obj jsonb = '{}'::jsonb;
682
680
  BEGIN
683
681
  IF (mime IS NULL) THEN
684
682
  mime = faker.mime();
685
683
  END IF;
686
- obj = jsonb_set(obj, '{url}', to_jsonb(faker.url(mime)::text));
687
- obj = jsonb_set(obj, '{mime}', to_jsonb(mime));
688
- RETURN obj;
684
+ RETURN faker.url(mime);
689
685
  END;
690
686
  $EOFCODE$ LANGUAGE plpgsql VOLATILE;
691
687
 
@@ -10405,4 +10401,4 @@ INSERT INTO faker.dictionary (
10405
10401
  ('cta', 'Learn more'),
10406
10402
  ('cta', 'Join now'),
10407
10403
  ('cta', 'Start now'),
10408
- ('cta', 'Get yours now');
10404
+ ('cta', 'Get yours now');