New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

posterior

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posterior - npm Package Compare versions

Comparing version 0.21.4 to 0.21.5

6

dist/posterior.js

@@ -1,4 +0,4 @@

/*! posterior - v0.21.4 - 2017-12-04
/*! posterior - v0.21.5 - 2018-01-18
* http://esha.github.io/posterior/
* Copyright (c) 2017 ESHA Research; Licensed */
* Copyright (c) 2018 ESHA Research; Licensed */

@@ -734,3 +734,3 @@ (function(W) {

Posterior.version = "0.21.4";
Posterior.version = "0.21.5";

@@ -737,0 +737,0 @@ if (typeof module !== 'undefined' && module.exports) {

��Zm��6��_�
C��ZoZ�9�����K�H�Pm+�J�$�fa��3CR��[�>d-��!9/ϼ(W�.�]մ�Ϋڛzw���u�#��Ϯ�1�~>����3o۶���J7[m�v�O����^��u�{��Ͷ��T�j�ͯo_yu�U�n�޻<�e�3�{v��w�}��yU����7�k�:O[�&��y�vM�ġ���.=�[U�j����r��ջ�^ׯU��ݩܪZ�����i ]�3Ƴ*��� ?��˞F���ӧS�_��a����&�@�þ.bՉ�w���(�v�K���}�vy@���e�m�m[��v{ �nU^���<_���R�_޽�>>�?��i�ӝ� $a:�ҭ���an�0é�PW�y��Z7Uq��D�0=����|ڜwK�r�o�$T ����,6CЋ�,e!NB=߁&���FL��%6#<��6��9~8���h3��oQ@�)ɗN�R�Xؑ9�HB�`U;]�$nu��2�����E��L���q<&��Ik�Ku��SMs_��%]od�1R����: 5��?�s&�e��?a4�"��d|v:��|+~!`�̢$/錴�ʲ7w��w9|��u��v��l��RtIt���O0�����u�g�; �bN��2��Ze�nh{�,� S���)�
[��>�(���Z��ٔF��9����I~_����~�j`��
hAG�>���1�A��Wi�w-���v�" 0��'z]��P;%F����=��s�[���PQ�[{��,�` ��������ze�d��E��R� ��כO�1T�����է�oc���_�$��dwF�9���g.�b(�w�Jup,o�n7���w����]����h!�B��k_8��^d�|t�'=B �!#? 3����E�]2�yA��'� !VgP�(�.�����/�[Xl�o�TT*kZU�1q�'�e�#��w~!b쑂w7�24�U�z�3O~����_H�1:�\>�p���!jU�W��u�b!U�p��^���/��Œ���L�-��旘f�j_b��,��3�������L`���x�b8 �"�lVþ��Xg��L>�p"zB.��#"�8y'؀�� ߉V� ��Wy��5.X����/�U�����t�6ഉ���j+7����3ψp:, ���&AϬeR��7���r���n�}y=[����[�H38X����7 皚�#|<l�K�sw ̕���V�`_�ً��l�gFQ�X�h�(�Z�eF.���{�JxUDhI��D\��AKd�n!p��|>�M&����8���}!��L� �T�����EB����� "�#%�^ ��z��-f?�o-������RnD�� �]�!v����Aj��=�S�5��o��&�C�G�TW���O�>���`��t����`#�wm��ͥh��"Y�󍼫�̛�l��&�v +�g�� ���Hc�\Ek���䞃�} 4,iM`���E�;I�N��<��jL��t�[�����o��u^j �N�-���w~�*���"�&�%^�����,4��޽E��m�g�r&@&2� {?�K!."��0~�3r��$/[� 3�Sq>B:8Q܉����n6O��$N;s�3 ݕg0O���� _?p^�Й�q+I��n$�cւ��#w��(I&�`�n��
�8,AI�m�j�7��h�.`=�p��W0'��Ɉ��"��� &\V��B�a2�&>��CM�(bR>���(>Z!ڵ�� �[�4�����)�Hfr�K�B��v;�^�yvy)�:d��V�ְ�[���ߑ���LW�"�g�J��ͭ-'Y��׫�\/���������=n/�����T��
`K�i�LuW[�Mv���L�P_�i��@��Z���A\[ko�׈| U��4~Sh�����q�`�2��^�f�r$��1��Z���j�[�!ȶ�p#��4�n|�k)//Z���R��̂��x pw:��5�v ��a��k�eT*q�}��V����]�;W�'�D�0t��i�m �F�5�O���>*�ٝXvnĘ�nb��I� �Y������.^ ,�:�7[���hFqP � pb�B@&�ކ>�L�z�-<��H�[d�!8QU�c&�.�6��4@�Eִ�8����Q��'/�P`װ�����LR��ix;�D~Q�� �K� 0�GN8��?Hx'�b��
n�d��7�j�\-_�e��_�a�$��?F{���8~gU�@��d����� �G|n�dRG`'i��Q�r3�< "��a�!���ka� �Cp ��1����j�V>z;��5 g`�1�]��!`n�K�.)��<�w�eD��Am���N,L���K���<�*����V��.NzM�:yL�v���&@���y}�~4[R�(- ⿼ơ��l9[-^յz�2j�*�&SKD����M���ɛ�b��� \ə`��m2��]�\zJ���*�r=���k��䈗�~ '4jt�0�]@z�|t�7D�����:%�uU��H՝��GX�d8�z�� `�.d�G�]#Ga��B%��>�kᴆHځ�A��о��;�n�e�"�-*�"��I���Ȥ�E�uW<�!�!�!��Ht���)��O�ˏp�\��ဒc���K{~Jn��� �v9��b��u��U� fw����%J�M,� 44;<�=<笑���w`�Ykԇ���u�l��C�+�u�A�{\�>��V�)���)����(ݞ:��">�/� 1��L��%�|�kkרE_Y% "&���I���`�l�K��1�#y� :��nus96z��ĄT�)(0� ڻ�� ��E��93' � ��.̜�V*^��l��Ù ���h*�h*p�lF2�M~�K�yu����,���tW���L.WsJ|���NC/��@�����FnJx4�鲴��qzXbpe��0� mЧ"�G2b9�S_�<���G�`y4����:�7��M$p|��z��u�%�P� (/�Z:*?� _F�QEGp���i��o�"�QFX ��So�޼��C�A�9�9/��X%:���)�B�QiF��@yÿ QXTMU�����G����<)g�|:, *w��%�e�
��R�b�6|��#�(�l��
�_W+YpYcm�/c���#����(AQ�C��1RQw�eR �B�0����v�M�9�Ǧ�Bj�S�C�~�0ic��π�[#d�whB;<gp��B��c��#��1�j�'�2?�R$�����>��V����~�_�jF])>�E?�!s����27�E: ���'g6��t� ����E�acB J���&�YS��M�y�;M�SD@��"�F6�#K����n���`?}Y�&1�)��v�َ�E���8�R�z�lZ�H�� �[���O،TM2�G�}dc-Pg=]�1��.5vlrrd�:Z0�B�5p^�?q�~��T�6��9��O� }kM���(�)��p��GLT����� ���E?�� �$I�����8)�\Ug� ;��P�o(G��}
震z�n�r;)[�r��!�B8hc2��|�9]D�Ʊ���5p��_��G_���bօ��6K.h�~OaC�~h&CX�h��5�ՌuC�^b�\�-�͉E�J��%}�M�L���g#&�J�\�Eu��:���Plp��q���>�F���jQ��}�B�����` ��K?�W����ø��3�/�NIZ浕��+��œ���A��;�(���(H%��k HZ��;f�mx�8�Ϧ���l�%"����f����J� t�l1�j�W��H���dJ�ۛ����*Bu8��5�����rE��M+8�g:���?���:qMsش�̹;���ʒ�o�'LM�tL�@37����XW����呅� XlV�q�,��F�}:�p����c�s��j�\�lw�3<N8��S��s��D� �;��ޤ�_�"��T)K=2���]��Z���X��Oi_��� ��I4Y� ڱ}'���h��o�#����n�l_���/2�2�fq�:t���s��Oퟹ�@:�V�A�^&� Lqv<����/y�%
C��Zo�
9�����K�H�Pm+�J�$�fa��3CR��[�>d-��!9/ϼ(W�.�]մ�Ϋڛzw���u�<=�]�8�]O��m�]|u����6y��'Q^]� �@��=��f�zA*x���׷����ѪN�s�]��љ�=����Lۼ*������5m���?w^޼V�&P�P�v_���ҭ�_��L\H9z���]u��תс��T nU����G�4�.��Y��ouن��eO�����өʍ/e�����S�I��a_��D�EEBQ�եL��>R�< �]��ۏ��6���G[��=E�*/q�n��zOq)��/��B��{ݴČ�Nx��0��S�V�`�d�0�?�� ��T~��ۼ�Q�����A"D��XP�{> mλ�U��7A*�H�g�!��l��'!���@�`�a#&����JU�n�?��^J���( ݔ�K'g�B,�Ȝx$!R����.Y���V���n��"�U�P�~^z�8��_�$��֥��xܩ����72�)T��U�R���9��2]͟0�l�d2> ;�L|����HfQ��tF�Jeٛ;X��[�:HC;O
�yO�T^)�$��o�'��d�{���3�� �i1�sj�D[�2]7��{��N�)^\� L�-Pg� P�^��M�Y�lJ����x�O ؇� ��MU�C[?@50�]��#K�f����ѫ4ջ�s��W�]���r� D���JH��#E �ǞZ�9��I{Z��ѭ��[L����xsd hd`���{�y��vKe)q�����'���Jy����뷱����nvy��;#�`��yB�3�L1�B��B�:�
�7W7������X����.��QO�W����/|X/�^>:À���Ő����`���"�.�Լ ���Î���3(L`�B�ky��X�-,�ڷx**�5��ۘ����2���;�1�H����~���m ��ۙ'?��}����U.q�M�����Fĺp���?�*�8 nu��V���qdaF�k�&���f��M�KL�i�/1�?n�_�[��R]^N&��OF<���O1�`�6�a_� _���~&�[ 8=!��d��l@���Í��D�?���ë<R�,T�~ܗ�Ϫ�QY�b��np�DLsy�P�����^ڙgD8��pn��g�2���N�d9�aq7߾��-F��í�s�,�j�ޛ�sMM�>�ӥ^������B�T����/���Ef|�Y�3�(K,M�Q�B-�2#i� ��=B% �*"�$\".QΠ�2@���R>��&���L�X羐� �O&d �H������"!ddKV��͑H/��x=zy�������N���}QH)7" �`��.��[��c� 5���)���n�7JH���#c��{��ȧ�F�|�D0 DT�J��s�ƻ����R4ar�,܈�F�Uy��p��bo����3�X��f��|���ʋ}Mr��ؾ���&0���"��f���l'�P {d5&�f�ЭFF� ��7��:/5�|���a�;
?�Up�a�Y��UR��b�dk�ށ�C�6�3�?9 �����SK?�9��
��-M�Щ8!�(
���@QrD7�'���E��9�׋��J�3�'s�SQu��8/K��済�$�\7Ջ1k���n㑻�E�$f0h�y�k�l��$�S5�Gc�p�A8��+�����dD�O[ �`h�.��o !t�0T�K¡&`1)  �zU���@D�-~d}m�ߔH$39ڥQ��M��g/�<��d2]f+ck��-U ���Hz�o��K�3q%�?��֖��,����J���WvG�d�����TBI�� �{R���4u����Z�&��`s��Q���4DB�UV-�t� ��-����kD��� �s_�)4U�Q��8s0\�^�/S3�?� ����R-|�BJ��-�d[t�O@�pB7>������qps��bfAQt��;��՚k�YȰf�5�2*���>�l���a�.ߝ��V�P�T����g�֚�'`Ei��N,;7bLY7�N�$�|��,WX�Q{k/�Q��-^�Z4�8��K81X! BoC�T�r���D$�-2�����*�1�by�D|��"k�u�_}�����ȓT(�k������xL&)U۴�O"�(���%���#'�C�$�C�|i�\�P�n5P���/�2��/�0qR��=��m��*F �t�G^K�^��#>�Z2�#��4��(a��@��j�
֐qS�ߵ0��X�!8��Әy��vK�o+��Q暅3��ʮ��0��% v��@�
��;�2"C�6|H^'&mM��ApD�Q�@�}�
+gd'�&n�<�f;Iy{ Z��<��@? �-)���_^���yU�����Z= x5hh��%"N@�R��� ���͍l1H�E���L0��6�dg�.n.=%I�o`�������Sr��~��5�R��. �P>:�����Qz��*
TR��N��#,C2�T�FW0C2Ӎ��̮���������C�wصpZC$�@� �Nuh_��j��2D���d�uE�$GcEd�Т�+B��א�R�Z$�S�y�Dϧ��G �c.���p@�1�E��=?
%7Ha��i���i���:�תD��zE^����&�w������s�����;���5 �À���ٺT�� ����:�� �=.C ��n+��e����� �nOdb�ݗƆ��X&\�q>ٵ�kԢ�����ऌu�Fc�z�y�%���ܑ<R� �����CjbB*�����oh�"P������ mfNe+/�� �Z��L�qHiY4�Z��m6#� A�&?�%P����~qs��wHro��M��u&��9%>@�M���sq�Q�C��#7� <�tY�]�8=,1�2 \{�Ʉ6�S�#����Ј��MRX�#v�<��Nxs̛��&8�sC������p(d�`-��х/����#8@�̴}ʂ7@ �(#��ݩ��Qo�|ۡ� y����~j���͔S!ب4�
�D���߀�(,����`H�rɣf��z����y>�
�;h��2_��b�{1_������W@��g��ʯ���,���6���qF���[�j��(�!����;��2)|�OH^�g;��&��cSU!��)��Z?[��1�H�g@����;���3�p�O!���1Cm������v�E��� �{����x�{fn�E����J?��/]5������9������"����Ƈؓ3�~�Є~��
ڢ�1��j�l��)C�&�<۝&�)" Vm�^#���%���m���zC���,w��ピE\��lGX�"��k�d�V=G6�T$T]��-P��'lF�� ��l�>�����.�NF�;6992L�d��8/�8s��[ ��G�X�L�섾�&�� � Ԕ�~�G�#&*��]��ɏ��բ�YqG}�$j�����Z�p��3ֆ��q(��?�7�#|�>�t�C�?[� k9���-v9Rϐc!� 4�1�
G>m��."|�ؿ���8@�/C[����}y1�B��?�%4S?���!}?4�!��u������jƺ!�
/1t.���Ģ p�����U����Ӧ\&��_�3��rR�`�ˢ:�d��es(68{ȸ�G�K�_ #JRF����>n���@XJ0�ե�+� �Y�a\�ڙ���$-�����Y���{@aN�h�� ��ǝ{��u����$�F�3�6<t�t�gӊQ�D6�ߒ ��RKD��� ^c��� �z���+܉K$�A|2����Nx}E��:�}�h���b�"m��&�����3�^��i �l���9l�y�\��l�aeI�7��
��J:�^������k����D�}�����,6+ԸV��o ��>�B8�� ��1�9�N�g.s���'��)��9Cy"x����FoR���q��u��� e��.�R�F�q��ڧ�/��h�����$�,x�ؾ��F4��7��GK��U�/�z��\�8}�[q�9�w����\^ �k+��G/��8;I{b�?��A�%

@@ -1,3 +0,2 @@

export function Posterior<T>(config?: Posterior.InputConfig, name?: string): Posterior.Requester;
export namespace Posterior {
declare namespace Posterior {
type XHREventHandler = (this: XHR, event: Event) => any | Function;

@@ -7,3 +6,3 @@ type T = any;

interface XHR extends XMLHttpRequest {
export interface XHR extends XMLHttpRequest {
readonly cfg: RequesterConfig;

@@ -15,3 +14,3 @@ readonly responseObject: {};

}
interface XHRPromise extends Promise<T> {
export interface XHRPromise extends Promise<T> {
readonly xhr: XHR;

@@ -77,3 +76,3 @@ }

}
type InputConfig = InputConfigBase & StatusCodeMapping & {
export type InputConfig = InputConfigBase & StatusCodeMapping & {
Children?: {

@@ -86,16 +85,16 @@ [sub: string]: InputConfig | Meta<InputConfig>;

};
type Retry = boolean | {
export type Retry = boolean | {
wait?: number;
limit?: number;
};
type Throttle = {
export type Throttle = {
key: string,
ms: number
};
type Follows = string | {
export type Follows = string | {
source: Requester | Promiser;
path: string;
};
type Timeout = number | XHREventHandler;
interface Meta<T> {
export type Timeout = number | XHREventHandler;
export interface Meta<T> {
name?: string;

@@ -117,3 +116,3 @@ fullname?: string;

//TODO: find way to declare only Meta<T> versions from InputConfig
type RequesterConfig = RequesterConfigBase & InputConfig;
export type RequesterConfig = RequesterConfigBase & InputConfig;

@@ -126,3 +125,3 @@ // one per call (flattened, filled, and called)

}
type ActiveConfig = ActiveConfigBase & RequesterConfig;
export type ActiveConfig = ActiveConfigBase & RequesterConfig;

@@ -172,3 +171,3 @@ const version: string;

type Promiser = (...input: any[]) => Promise<T>;
export type Promiser = (...input: any[]) => Promise<T>;
interface RequesterBase extends InputConfigBase {

@@ -180,4 +179,4 @@ cfg: RequesterConfig;

type RequesterFn = (...requestData: any[]) => XHRPromise;
type Requester = RequesterFn & RequesterBase;
type Requirement = string | Requester | Promiser;
export type Requester = RequesterFn & RequesterBase;
export type Requirement = string | Requester | Promiser;

@@ -225,2 +224,4 @@ function api(config: InputConfig, name?: string): Requester;

export default Posterior;
declare function Posterior<T>(config?: Posterior.InputConfig, name?: string): Posterior.Requester;
export = Posterior;

@@ -5,3 +5,3 @@ {

"description": "Hierarchical, declarative configuration of Promise-based, JSON-ready, XHR communication with remote APIs",
"version": "0.21.4",
"version": "0.21.5",
"homepage": "http://esha.github.io/posterior/",

@@ -8,0 +8,0 @@ "author": {

@@ -67,2 +67,3 @@ [Posterior][home] Put a nice front on your backend! Posterior gives your remote APIs intuitive, Promise-based, JSON-ready JavaScript interfaces via flexible, declarative, hierarchical configurations.

* 2017-12-04 [v0.21.4][] (add 'Children' and 'Properties' subconfigs, since TypeScript can't handle mix of known and unknown keys with typed values)
* 2018-01-18 [v0.21.5][] (change index.d.ts to match format that seems to be working for store2 and moment.js)

@@ -89,1 +90,2 @@ [v0.1.4]: https://github.com/esha/posterior/tree/0.1.4

[v0.21.4]: https://github.com/esha/posterior/tree/0.21.4
[v0.21.5]: https://github.com/esha/posterior/tree/0.21.5
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc