Movatterモバイル変換


[0]ホーム

URL:


CN112083945A - NPM installation package update prompt method, device, electronic device and storage medium - Google Patents

NPM installation package update prompt method, device, electronic device and storage medium
Download PDF

Info

Publication number
CN112083945A
CN112083945ACN202010963242.6ACN202010963242ACN112083945ACN 112083945 ACN112083945 ACN 112083945ACN 202010963242 ACN202010963242 ACN 202010963242ACN 112083945 ACN112083945 ACN 112083945A
Authority
CN
China
Prior art keywords
npm
software package
user
communication information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010963242.6A
Other languages
Chinese (zh)
Other versions
CN112083945B (en
Inventor
廉恒睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN202010963242.6ApriorityCriticalpatent/CN112083945B/en
Publication of CN112083945ApublicationCriticalpatent/CN112083945A/en
Application grantedgrantedCritical
Publication of CN112083945BpublicationCriticalpatent/CN112083945B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The application relates to the technical field of software, and discloses an NPM software package update prompting method, an NPM software package update prompting device, electronic equipment and a storage medium, wherein the NPM software package update prompting method comprises the following steps: acquiring communication information of a user of the NPM software package; the method for acquiring the communication information of the user of the NPM software package comprises the following steps: receiving communication information sent by a user end of the NPM software package, wherein the communication information is acquired by the user end in the following way: acquiring description file information corresponding to the NPM software package; acquiring communication information of a user of the NPM software package according to the description file information; and when the NPM software package is updated, sending the updating information of the NPM software package to the user according to the communication information. This application is through the acquirement of NPM software package's user's communication information to in time inform the user with the update message of NPM software package, the user demand that satisfies the user that can be better effectively promotes user's use and feels, and convenience of customers manages the NPM software package.

Description

Translated fromChinese
NPM安装包的更新提示方法、装置、电子设备及存储介质NPM installation package update prompt method, device, electronic device and storage medium

技术领域technical field

本申请涉及软件技术领域,具体而言,本申请涉及一种NPM安装包的更新提示方法、装置、电子设备及存储介质。The present application relates to the technical field of software, and in particular, the present application relates to a method, apparatus, electronic device, and storage medium for prompting an update of an NPM installation package.

背景技术Background technique

现有的节点包管理器NPM软件包的更新提示方法一般有如下2种:一种是在软件运行的时候,后台去检查最新的版本号,然后将版本号展示给用户,通过弹窗的形式提示用户对软件进行升级,提示界面可以如图1所示,该图显示NPM软件可以升级到0.1.6版本。但该种方式只能告知用户软件的最新版本号,无法列出详细的更新内容,其详细运作机制如图2所示:第一次运行的时候,除了获取软件的核心功能之外,同时异步获取软件的最新版本号信息,并将最新版本号信息存起来;下一次运行的时候将获取的最新版本号信息与本地安装版本进行对比,如果不一致,则提示更新。The existing node package manager NPM software package update prompt methods generally have the following two methods: one is to check the latest version number in the background when the software is running, and then display the version number to the user through a pop-up window. The user is prompted to upgrade the software, and the prompt interface can be shown in Figure 1, which shows that the NPM software can be upgraded to version 0.1.6. However, this method can only inform the user of the latest version number of the software, and cannot list the detailed update content. The detailed operation mechanism is shown in Figure 2: when running for the first time, in addition to obtaining the core functions of the software, asynchronous Obtain the latest version number information of the software, and save the latest version number information; when running the next time, compare the obtained latest version number information with the locally installed version, and if it is inconsistent, it will prompt to update.

另一种方法是在NPM软件包发布新版本之后,在官网上发布更新信息,用户可以在官网上查询软件更新的详细信息,但是,如果用户不主动去官网查询版本更新信息,则无法获知软件是否存在更新版本,该种方式导致用户无法及时获知NPM软件包的更新信息。Another method is to publish the update information on the official website after the new version of the NPM software package is released. Users can check the detailed information of the software update on the official website. However, if the user does not actively go to the official website to check the version update information, they will not be able to know the software. Whether there is an updated version, in this way, the user cannot obtain the update information of the NPM software package in time.

发明内容SUMMARY OF THE INVENTION

本申请的目的旨在至少能解决上述的技术缺陷之一,特提出以下技术方案:The purpose of this application is to solve at least one of the above-mentioned technical defects, and the following technical solutions are specially proposed:

本申请的一个方面,提供了一种节点包管理器NPM软件包的更新提示方法,包括:In one aspect of the present application, a method for prompting an update of an NPM software package of a node package manager is provided, including:

获取NPM软件包的使用者的通讯信息;Get communication information for users of NPM packages;

当NPM软件包发生更新时,根据通讯信息将NPM软件包的更新信息发送给使用者,更新信息包括更新内容;When the NPM software package is updated, the update information of the NPM software package is sent to the user according to the communication information, and the update information includes the update content;

其中,获取NPM软件包的使用者的通讯信息,包括:Among them, the communication information of users of NPM software packages is obtained, including:

接收NPM软件包的使用端发送的通讯信息,通讯信息是使用端通过以下方式获取到的:Receive the communication information sent by the consumer of the NPM software package. The communication information is obtained by the consumer in the following ways:

获取NPM软件包对应的描述文件信息;Obtain the description file information corresponding to the NPM package;

根据描述文件信息,获取NPM软件包的使用者的通讯信息。According to the description file information, obtain the communication information of the user of the NPM package.

本申请的另一个方面,提供了一种节点包管理器NPM软件包的更新提示装置,该装置包括:Another aspect of the present application provides an update prompting device for a node package manager NPM software package, the device comprising:

获取通讯信息模块,用于获取NPM软件包的使用者的通讯信息;Get the communication information module, which is used to obtain the communication information of the user of the NPM software package;

发送更新信息模块,用于当NPM软件包发生更新时,根据通讯信息将NPM软件包的更新信息发送给使用者,更新信息包括更新内容;The sending update information module is used to send the update information of the NPM software package to the user according to the communication information when the NPM software package is updated, and the update information includes the update content;

其中,获取通讯信息模块包括通讯信息接收单元,所述通讯信息接收单元用于:Wherein, the acquiring communication information module includes a communication information receiving unit, and the communication information receiving unit is used for:

接收NPM软件包的使用端发送的通讯信息,通讯信息为发送端通过以下方式获取到的:Receive the communication information sent by the user of the NPM software package, and the communication information is obtained by the sender in the following ways:

获取NPM软件包对应的描述文件信息;根据描述文件信息,获取NPM软件包的使用者的通讯信息。Obtain the description file information corresponding to the NPM software package; according to the description file information, obtain the communication information of the user of the NPM software package.

本申请的再一个方面,提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行程序时实现本申请第一方面所示的节点包管理器NPM软件包的更新提示方法。In yet another aspect of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the program, the node shown in the first aspect of the present application is implemented. Update prompt method for package manager NPM packages.

本申请的又一个方面,提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现本申请第一方面所示的节点包管理器NPM软件包的更新提示方法。Another aspect of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the node package manager shown in the first aspect of the present application Update prompt method for npm packages.

本申请提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the application are:

本申请提供的节点包管理器NPM软件包的更新提示方法,通过预先获取NPM软件包的使用者的通讯信息,能够主动且及时地将NPM软件包的更新信息传递给使用者,而且,本申请提供的更新信息中包括更新内容,与现有的只提供更新版本号的更新信息相比,本申请提供的更新信息更为详细,有利于NPM软件包的使用者通过更新信息获知NPM软件包的详细更新信息。The method for prompting the update of the NPM software package of the node package manager provided by this application can actively and timely transmit the update information of the NPM software package to the user by obtaining the communication information of the user of the NPM software package in advance. The update information provided includes the update content. Compared with the existing update information that only provides the updated version number, the update information provided in this application is more detailed, which is beneficial for the users of the NPM software package to know the NPM software package through the update information. Detailed update information.

本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be set forth in part in the following description, which will become apparent from the following description, or may be learned by practice of the present application.

附图说明Description of drawings

本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:

图1为现有技术中提示用户NPM软件包存在更新的提示界面示意图;1 is a schematic diagram of a prompt interface for prompting a user to update the NPM software package in the prior art;

图2为现有技术中通过弹窗的形式提示用户软件包存在更新的运作机制的流程图;Fig. 2 is the flow chart of the operation mechanism of prompting the user software package to be updated in the form of a pop-up window in the prior art;

图3为本申请一个实施例提供的节点包管理器NPM软件包的更新提示方法的流程图;3 is a flowchart of a method for prompting an update of a node package manager NPM software package provided by an embodiment of the present application;

图4为本申请一个实施例提供的通过运行脚本获取使用者的通讯信息的过程示意图;4 is a schematic diagram of a process for obtaining communication information of a user by running a script according to an embodiment of the present application;

图5为本申请一个实施例提供的通过运行cli工具获得描述文件信息的方式获得使用者的通讯信息的流程图;5 is a flowchart of obtaining the communication information of the user by running the cli tool to obtain the description file information provided by an embodiment of the present application;

图6为本申请一个实施例提供的利用预先设置的钩子函数获取使用者的通讯信息的流程图;FIG. 6 is a flow chart of obtaining communication information of a user by utilizing a preset hook function provided by an embodiment of the present application;

图7为本申请实施例提供的一种节点包管理器NPM软件包的更新提示装置的结构示意图;FIG. 7 is a schematic structural diagram of a device for prompting an update of a node package manager NPM software package according to an embodiment of the present application;

图8为本申请实施例提供的一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

下面详细描述本申请的实施例,实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, but not to be construed as a limitation on the present application.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the specification of this application refers to the presence of features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groups thereof. It will be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Furthermore, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combination of one or more of the associated listed items.

本领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。It will be understood by those of ordinary skill in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in a general dictionary, should be understood to have meanings consistent with their meanings in the context of the prior art and, unless specifically defined as herein, should not be interpreted in idealistic or overly formal meaning to explain.

NPM:Node package manager,节点包管理器,是javascript语言中的包管理工具。NPM: Node package manager, node package manager, is a package management tool in the javascript language.

钩子函数:在一个事件触发的时候,在系统级捕获到该事件的触发,然后做一些操作,一般用以处理系统消息的程序。Hook function: When an event is triggered, the trigger of the event is captured at the system level, and then some operations are performed, generally used to process system messages.

cli工具:command-line interface,命令行交互接口,为用户自定义的命令工具集合。cli tool: command-line interface, a command-line interactive interface, a collection of user-defined command tools.

对于现有技术中所存在的技术问题,本申请提供的节点包管理器NPM软件包的更新提示方法、装置、电子设备及存储介质,旨在解决现有技术的如上技术问题中的至少一项。Regarding the technical problems existing in the prior art, the method, device, electronic device and storage medium for updating the node package manager NPM software package provided by this application are intended to solve at least one of the above technical problems in the prior art .

下面以具体实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solutions of the present application and how the technical solutions of the present application solve the above-mentioned technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

本申请实施例提供了一种可能的实现方式,如图3所示,提供了一种节点包管理器NPM软件包的更新提示方法的流程图,该方案可以由任一电子设备执行,可选的,可以在服务器端执行,包括以下步骤:This embodiment of the present application provides a possible implementation manner. As shown in FIG. 3 , a flowchart of a method for prompting an NPM software package update of a node package manager is provided. This solution can be executed by any electronic device, and the optional , which can be executed on the server side, including the following steps:

步骤S310,获取NPM软件包的使用者的通讯信息;Step S310, obtaining the communication information of the user of the NPM software package;

步骤S320,当NPM软件包发生更新时,根据通讯信息将NPM软件包的更新信息发送给使用者,更新信息包括更新内容。Step S320, when the NPM software package is updated, the update information of the NPM software package is sent to the user according to the communication information, and the update information includes the update content.

本申请获取NPM软件包的使用者的通讯信息,以便直接通过使用者的通讯信息将NPM软件包的相关信息发送给使用者,以使得使用者能够高效获得NPM软件包的相关信息。The present application obtains the communication information of the user of the NPM software package, so as to directly send the relevant information of the NPM software package to the user through the user's communication information, so that the user can efficiently obtain the relevant information of the NPM software package.

由于软件包的更新信息可以通过通讯信息,如邮箱、短信等发送给使用者,与现有通过更新提示弹窗的形式给出的更新信息相比,本申请提供的更新信息能够承载更多的信息量,软件包的更新信息可以包括更新内容,更新内容可以包括:更新版本号、更新版本的优势、解决的问题、更新版本的新增功能、新增模块等,解决了现有技术中无法获得软件包的详细更新信息的问题。而且,本申请将NPM软件包的更新信息发送给使用者是自动进行的,无需用户主动查询,有利于实现及时将NPM软件包的更新信息传递给使用者的目的。Since the update information of the software package can be sent to the user through communication information, such as mailboxes, short messages, etc., compared with the existing update information given in the form of update prompt pop-ups, the update information provided by this application can carry more The amount of information, the update information of the software package can include the updated content, and the updated content can include: the updated version number, the advantages of the updated version, the problems solved, the new functions and new modules of the updated version, etc. A problem with getting detailed update information for a package. Moreover, the present application sends the update information of the NPM software package to the user automatically, and does not require the user to actively query, which is conducive to realizing the purpose of transmitting the update information of the NPM software package to the user in time.

可选地,根据通讯信息将NPM软件包的更新信息发送给使用者,可以定期进行,也可以在检测到NPM软件包发生更新时立即进行更新信息的发送,以便提高使用者获得更新信息的速率。Optionally, the update information of the NPM software package is sent to the user according to the communication information, which can be performed periodically, or the update information can be sent immediately when an update of the NPM software package is detected, so as to improve the rate at which the user obtains the update information. .

进一步地,更新信息还可以包括更新指引信息,根据该更新指引信息可以获得更新后的NPM软件包,该更新指引信息可以为更新后的NPM软件包的下载地址或下载路径等,便于使用者获得更新后的NPM软件包进行软件更新。Further, the update information can also include update guide information, according to which the updated NPM software package can be obtained, and the update guide information can be the download address or download path of the updated NPM software package, etc., which is convenient for users to obtain. Updated NPM packages for software updates.

本申请通过预先获取NPM软件包的使用者的通讯信息,能够主动且及时地将NPM软件包的更新信息传递给使用者,而且,与现有的更新提示弹窗给出的更新信息相比,本申请提供的更新信息更为详细,有利于NPM软件包的使用者通过更新信息获知NPM软件包的详细更新信息。By obtaining the communication information of the user of the NPM software package in advance, the present application can actively and timely transmit the update information of the NPM software package to the user. The update information provided in this application is more detailed, which is beneficial for the user of the NPM software package to know the detailed update information of the NPM software package through the update information.

其中,获取NPM软件包的使用者的通讯信息,可以通过如下方式进行:Among them, the communication information of users of NPM software packages can be obtained in the following ways:

接收NPM软件包的使用端发送的通讯信息,通讯信息是使用端通过以下方式获取到的:Receive the communication information sent by the consumer of the NPM software package. The communication information is obtained by the consumer in the following ways:

获取NPM软件包对应的描述文件信息;Obtain the description file information corresponding to the NPM package;

根据描述文件信息,获取NPM软件包的使用者的通讯信息。According to the description file information, obtain the communication information of the user of the NPM package.

其中,NPM软件包的描述文件信息,可以通过如下方式获得:在使用端为安装NPM软件包创建项目,初始化该项目,获得安装NPM软件包对应的描述文件,读取描述文件的内容获得描述文件信息,该描述文件信息中包含使用者的通讯信息,可以从描述文件信息中提取使用者的通讯信息。该种方案通过在NPM软件包的描述文件信息获取使用者的通讯信息,能够准确获得NPM软件包的使用者的通讯信息。Among them, the description file information of the NPM software package can be obtained by the following methods: create a project for installing the NPM software package on the user side, initialize the project, obtain the description file corresponding to the installation of the NPM software package, and read the content of the description file to obtain the description file. information, the description file information contains the user's communication information, and the user's communication information can be extracted from the description file information. In this solution, the communication information of the user is obtained from the description file information of the NPM software package, and the communication information of the user of the NPM software package can be accurately obtained.

为了更清楚本申请提供的节点包管理器NPM软件包的更新提示方案及其技术效果,接下来以多个实施例对其具体实施方案进行详细阐述。In order to make it clearer about the update prompt scheme of the NPM software package of the node package manager provided by the present application and its technical effect, the specific implementation of the solution is described in detail below with a plurality of embodiments.

本申请还提供了一种可选实施例来获取描述文件信息,NPM软件包中包含用于获取描述文件信息的脚本,获取NPM软件包对应的描述文件信息可以通过运行用于获取描述文件信息的脚本获取,可选地,获取NPM软件包对应的描述文件信息,可以包括如下步骤:The present application also provides an optional embodiment for obtaining description file information. The NPM software package includes a script for obtaining description file information, and the description file information corresponding to the NPM software package can be obtained by running the script for obtaining description file information. The script acquisition, optionally, acquisition of the description file information corresponding to the NPM software package may include the following steps:

在安装完成NPM软件包时,通过运行用于获取描述文件信息的脚本获取NPM软件包对应的描述文件信息。When the NPM software package is installed, run the script for obtaining the description file information to obtain the description file information corresponding to the NPM software package.

在使用端运行用于获取描述文件信息的脚本,该步骤可以在NPM软件包安装之后进行,接下来以图4所示的示例说明通过运行脚本获得描述文件信息,进而获得使用者的通讯信息的方案。Run the script used to obtain the description file information on the user side. This step can be performed after the NPM software package is installed. Next, the example shown in Figure 4 is used to illustrate how to obtain the description file information by running the script, and then obtain the user's communication information. Program.

可选地,通过运行脚本获取使用者的通讯信息的过程示意图如图4所示,预先为安装NPM包创建安装项目,并设置项目名为xxx,在程序的根目录下运行npm install xxx命令,生成用户安装NPM软件包对应的描述文件,该描述文件可以命名为package.json文件,在该描述文件中设置一个钩子函数,这个钩子函数表征在NPM软件包安装完成后运行postinstall.js脚本,该postinstall.js脚本为用于获取描述文件信息的脚本。然后获取并安装NPM软件包,该软件包的安装可以为获取到NPM软件包所有文件,即实现安装,软件安装完成后,根据钩子函数的设置运行postinstall.js脚本获取描述文件中的描述文件信息。然后,从描述文件信息中提取关键词,获取使用者的通讯信息,如:提取author关键词对应的字段,获得author字段对应的使用者的通讯信息,最后,将使用者的通讯信息发送到指定的用户信息收集系统,如上传到服务器端。Optionally, a schematic diagram of the process of obtaining the user's communication information by running a script is shown in Figure 4. An installation project is created for installing the NPM package in advance, and the project name is set to xxx, and the npm install xxx command is run in the root directory of the program, Generate a description file corresponding to the NPM package installed by the user. The description file can be named as a package.json file, and a hook function is set in the description file. This hook function indicates that the postinstall.js script is run after the NPM package is installed. The postinstall.js script is the script used to obtain the description file information. Then obtain and install the NPM software package. The installation of the software package can be achieved by obtaining all the files of the NPM software package, that is, to realize the installation. After the software installation is completed, run the postinstall.js script according to the settings of the hook function to obtain the description file information in the description file. . Then, extract keywords from the description file information to obtain the user's communication information, such as: extract the field corresponding to the author keyword, obtain the user's communication information corresponding to the author field, and finally send the user's communication information to the designated user information collection system, such as uploading to the server.

可选地,在package.json描述文件中,可以通过以下关键词进行参数设置:’name’为NPM软件包的包名,’version’为版本号,’description’为包的描述,’postinstall’为钩子函数,钩子函数中的参数:’node src/postinstall.js’表征NPM软件包安装完毕之后运行scr目录下的postinstall.js脚本,’repository’为包代码存放的地方的类型,包代码存放的地方的类型可以为git类型,’author’字段对应的是软件包的使用者的信息,例如:使用者的信息可以为’Eli Grey<me@eligrey.com>’,通过该信息可以获得该使用者的通讯信息为邮箱’me@eligrey.com’。Optionally, in the package.json description file, parameters can be set by the following keywords: 'name' is the package name of the NPM package, 'version' is the version number, 'description' is the description of the package, and 'postinstall' For the hook function, the parameters in the hook function: 'node src/postinstall.js' indicates that the postinstall.js script in the scr directory is run after the NPM software package is installed, and 'repository' is the type of the place where the package code is stored, the package code is stored The type of the place can be git type, and the 'author' field corresponds to the information of the user of the software package. For example, the information of the user can be 'Eli Grey<me@eligrey.com>', through which the information can be obtained. The user's communication information is the email 'me@eligrey.com'.

本申请提供的通讯信息,是在NPM软件包安装之前获得NPM软件包对应的描述文件,然后,在NPM安装之后,通过获取描述文件信息的脚本获取描述文件信息,进而获得使用者的通讯信息,该方案不依赖外部工具,通过NPM的安装获得使用者的通讯信息,能够获得准确的NPM软件包的使用者的通讯信息。The communication information provided by this application is to obtain the description file corresponding to the NPM software package before the installation of the NPM software package, and then, after the NPM installation, obtain the description file information through the script for obtaining the description file information, and then obtain the user's communication information, The solution does not rely on external tools, obtains the user's communication information through the installation of NPM, and can obtain the accurate communication information of the user of the NPM software package.

在另一种可选实施例中,若NPM软件包附带有配套的命令行交互接口cli工具,获取NPM软件包对应的描述文件信息可以通过如下方式获得:通过运行NPM软件包附带的配套命令行交互接口cli工具,读取NPM软件包的描述文件信息。In another optional embodiment, if the NPM software package comes with a supporting command line interactive interface cli tool, the description file information corresponding to the NPM software package can be obtained in the following way: by running the supporting command line attached to the NPM software package Interactive interface cli tool to read the description file information of NPM packages.

若NPM软件包有附带的配套cli工具,获得NPM软件包对应的描述文件之后,通过NPM软件包附带的配套cli工具,读取NPM软件包的描述文件,获得描述文件信息。If the NPM software package has the accompanying cli tool, after obtaining the description file corresponding to the NPM software package, use the supporting cli tool attached to the NPM software package to read the description file of the NPM software package to obtain the description file information.

其中,cli工具为用户自定义的linux命令集合,通过cli工具可以在安装NPM软件包之前,读取NPM软件包的描述文件,快速获得NPM的描述文件信息。The cli tool is a user-defined set of linux commands. The cli tool can read the description file of the NPM package before installing the NPM package, and quickly obtain the description file information of the NPM.

以专有云为例,本申请提供了一套开发工具集合,包括cli工具、组件库、函数库等,通过cli工具的npm run dev命令来启动项目,在启动的过程中可以读取NPM软件包的描述文件,获得描述文件信息。Taking Proprietary Cloud as an example, this application provides a set of development tools, including cli tools, component libraries, function libraries, etc. The project can be started through the npm run dev command of the cli tool, and NPM software can be read during the startup process The description file of the package, get the description file information.

通过运行cli工具获得描述文件信息的方式获得使用者的通讯信息的流程图,如图5所示,通过在客户端运行命令行交互接口cli工具获得描述文件信息,根据描述文件信息获得用户信息,用户信息包括使用者的通讯信息,将使用者的通讯信息上传至用户信息收集系统。The flow chart of obtaining the user's communication information by running the cli tool to obtain the description file information is shown in Figure 5. The description file information is obtained by running the command line interactive interface cli tool on the client, and the user information is obtained according to the description file information. The user information includes the user's communication information, and the user's communication information is uploaded to the user information collection system.

该方案不依赖于NPM软件包的安装,只需要获得NPM软件包的描述文件,即可通过cli工具获得NPM软件包的描述文件信息,以快速获得NPM软件包的使用者的通讯信息。This solution does not depend on the installation of the NPM software package. It only needs to obtain the description file of the NPM software package, and then the description file information of the NPM software package can be obtained through the cli tool, so as to quickly obtain the communication information of the users of the NPM software package.

上述实施例提供的获取通讯信息的方式均是通过NPM的描述文件信息获得NPM软件包的使用者的通讯信息,描述文件信息可以通过如下至少一种方式获得:用于获取描述文件信息的脚本、命令行交互接口CLI工具等。但是,当NPM软件包对应的描述文件信息中没有使用者的通讯信息,或者未接收到客户端上传的文件描述信息时,则无法通过描述文件信息获得使用者的通讯信息,为了解决该问题,本申请一种可选实施例提供了以下方案:The methods for obtaining the communication information provided by the above-mentioned embodiments are to obtain the communication information of the user of the NPM software package through the description file information of NPM. The description file information can be obtained by at least one of the following methods: a script for obtaining the description file information, Command line interactive interface CLI tools, etc. However, when there is no user's communication information in the description file information corresponding to the NPM software package, or when the file description information uploaded by the client is not received, the user's communication information cannot be obtained through the description file information. In order to solve this problem, An optional embodiment of the present application provides the following solutions:

向NPM软件包的使用端发送通讯信息获取请求;Send a communication information acquisition request to the user of the NPM software package;

接收使用端基于该通讯信息获取请求发送的使用者的通讯信息。Receive the communication information of the user sent by the user end based on the communication information acquisition request.

该方案可以在描述文件信息中检测不到使用者的通讯信息后进行,也就是说,描述文件信息中的用户信息可以只有名字或代号,而非可以进行通讯交互的通讯信息,假设author字段对应的信息为’gery’,则无法通过描述文件信息确定使用者的通讯信息。可选地,可以根据软件包代码存放的地方的类型确定对应的通讯信息获取命令,如:软件包代码存放的地方的类型为git类型时,可以通过运行git confug user.email命令获取使用者的通讯信息。This solution can be carried out after the user's communication information cannot be detected in the description file information, that is to say, the user information in the description file information can only have a name or code, rather than the communication information that can be used for communication and interaction, assuming that the author field corresponds to The information is 'gery', the user's communication information cannot be determined from the description file information. Optionally, the corresponding communication information acquisition command can be determined according to the type of the place where the software package code is stored. For example, when the type of the place where the software package code is stored is git type, the user's information can be obtained by running the git confug user.email command. communication information.

除此之外,若NPM软件包对应的描述文件信息中没有使用者的通讯信息,而且,未接收到客户端上传的文件描述信息,还可以向客户端发送通讯信息的获取命令等方式获取。In addition, if there is no user's communication information in the description file information corresponding to the NPM software package, and the file description information uploaded by the client has not been received, it can also be obtained by sending a command to obtain the communication information to the client.

本申请提供的方案,可以在描述文件未提供使用者的通讯信息的情况下进行,也可以直接进行,也就是说,不论描述文件中是否存在使用者的通讯信息,都可以直接通过这种方式进行通讯信息的获取,通过通讯信息获取命令获取到NPM软件包的使用者的通讯信息,以提高获得使用者的通讯信息的概率。The solution provided by this application can be carried out in the case that the description file does not provide the user's communication information, or it can be carried out directly. The communication information is obtained, and the communication information of the user of the NPM software package is obtained through the communication information obtaining command, so as to improve the probability of obtaining the communication information of the user.

上述实施例提供的方案,基于NPM软件包对应的描述文件信息进行,除此之外,本申请可选实施例还提供了另一种方案来获取NPM软件包的使用者的通讯信息,该种方式不依赖于NPM软件包对应的描述文件信息,包括如下步骤:The solution provided by the above-mentioned embodiment is performed based on the description file information corresponding to the NPM software package. In addition, the optional embodiment of the present application also provides another solution to obtain the communication information of the user of the NPM software package. The method does not depend on the description file information corresponding to the NPM package, and includes the following steps:

A1,接收NPM软件包的下载服务器发送的使用者的通讯信息,其中,使用者的通讯信息是下载服务器通过以下方式获得的:A1. Receive the communication information of the user sent by the download server of the NPM software package, wherein the communication information of the user is obtained by the download server in the following ways:

A11,接收NPM软件包的使用端发送的软件包获取请求;A11: Receive a software package acquisition request sent by the user of the NPM software package;

A12,基于该获取请求获取下载服务器的登录信息;A12, obtain the login information of the download server based on the obtaining request;

A13,根据该登录信息确定使用端对应的通讯信息。A13: Determine the communication information corresponding to the user terminal according to the login information.

其中,下载服务器可以为提供软件下载的服务器,该服务器可以为局部服务器,如企业内部的软件下载平台,基于获取请求获取下载服务器的登录信息,该登录信息中包括使用者的标识信息,以基于该标识信息确定用户的通讯信息。基于获取请求获取下载服务器的登录信息,可以通过如下方式得到:基于获取请求向使用端发送登录指令,使用端响应于该登录指令发送登录信息;如果使用端已经登录下载服务器,即下载服务器已预先得到使用端的登录信息,下载服务器接收到软件包获取请求之后,可以直接读取使用者的登录信息。除此之外,可以在发送软件包获取请求的同时发送下载服务器的登录信息,如:使用端向下载服务器发送软件包获取请求,下载服务器解析该软件包获取请求,获取该获取请求中的登录信息,下载服务器获得该登录信息之后,可以利用该登录信息,尤其是登录信息中的软件请求方的标识信息获得软件请求方的通讯信息,如:根据请求方的标识信息以及预先构建的标识信息与通讯信息之间的关联确定软件请求方的通讯信息。Wherein, the download server may be a server that provides software download, and the server may be a local server, such as a software download platform within an enterprise, which acquires the login information of the download server based on the acquisition request, and the login information includes the identification information of the user to be used based on the acquisition request. The identification information determines the communication information of the user. Obtaining the login information of the download server based on the acquisition request can be obtained in the following ways: sending a login instruction to the user based on the acquisition request, and the user sends the login information in response to the login instruction; if the user has logged in to the download server, that is, the download server has previously After obtaining the login information of the user, the download server can directly read the login information of the user after receiving the software package acquisition request. In addition, the login information of the download server can be sent when sending the software package acquisition request, for example: the user sends a software package acquisition request to the download server, the download server parses the software package acquisition request, and obtains the login information in the acquisition request After obtaining the login information, the download server can use the login information, especially the identification information of the software requester in the login information to obtain the communication information of the software requester, such as: according to the identification information of the requester and the pre-built identification information The association with the communication information determines the communication information of the software requester.

本申请实施例提供的方案中,可以通过预先构建的用于获取使用者的通讯信息的钩子函数触发对软件请求方的通讯信息的获取,该钩子函数可以由下载服务器提供,利用钩子函数触发对使用者的通讯信息的获取,该触发时机是下载服务器接收到软件请求方发送的NPM软件包的获取请求,将获取到的使用者的通讯信息的进行发送。In the solution provided by the embodiment of the present application, the acquisition of the communication information of the software requester may be triggered by a pre-built hook function for acquiring the communication information of the user, the hook function may be provided by the download server, and the hook function is used to trigger the The acquisition of the communication information of the user is triggered when the download server receives the acquisition request of the NPM software package sent by the software requester, and sends the acquired communication information of the user.

本申请实施例提供的获取使用者的通讯信息的流程图如图6所示,该示例中,下载服务器为包含多个软件包的软件包仓库,用户发送软件包的获取请求,下载服务器获得该获取请求,解析该获取请求,获得使用者的通讯信息,并且,下载服务器响应于该获取请求,发送NPM软件包至使用端(对应于图6中的下载软件包过程),然后下载服务器将使用者的通讯信息发送至信息收集系统,也就是上传给服务器,服务器获得使用者的通讯信息。The flowchart of obtaining the communication information of the user provided by the embodiment of the present application is shown in FIG. 6 . In this example, the download server is a software package repository containing multiple software packages. The user sends a software package obtaining request, and the download server obtains the software package. Obtaining the request, parsing the obtaining request, obtaining the communication information of the user, and, in response to the obtaining request, the download server sends the NPM software package to the user (corresponding to the process of downloading the software package in Figure 6), and then the download server will use the The user's communication information is sent to the information collection system, that is, uploaded to the server, and the server obtains the user's communication information.

本申请实施例提供的方案,是在NPM软件包的请求获取阶段,也即是说,尚未进入NPM软件包的安装阶段即能获得使用端对应的通讯信息,能够进一步提高获得使用者的通讯信息的速率。The solution provided by the embodiment of the present application is in the stage of requesting acquisition of the NPM software package, that is to say, the communication information corresponding to the user can be obtained before entering the installation stage of the NPM software package, which can further improve the acquisition of the communication information of the user. s speed.

在此基础上,还可以通过筛选条件将获取软件包的用户中安装有NPM软件包的用户筛选出来,以避免将更新信息发送给未安装软件包的用户。On this basis, users who have installed NPM packages among users who obtain packages can also be filtered out by filtering conditions, so as to avoid sending update information to users who do not have packages installed.

可选地,上述任一实施例提供的方案中,通讯信息包括邮箱地址、电话号码等,通过邮箱地址可以通过邮件的形式将NPM软件包的更新信息发送给使用者,通过电话号码可以通过短信的形式将NPM软件包的更新信息发送给使用者,两种方式都能便捷地将详细的更新信息及时告知使用者。Optionally, in the scheme provided by any of the above embodiments, the communication information includes an email address, a phone number, etc., the update information of the NPM software package can be sent to the user through the email address, and the update information of the NPM software package can be sent to the user through the phone number. The update information of the NPM software package is sent to the user in the form of , and the two methods can conveniently inform the user of the detailed update information in time.

可选地,由于cli工具获取描述文件信息并不依赖于NPM软件包的安装,但是,如果用户并未安装NPM软件包,那么,将NPM软件包的更新信息发送给该用户,不仅会造成用户困扰,也会增加本方案的数据传输量,为了避免该种情况发生,本申请提供了如下方案:Optionally, because the cli tool does not depend on the installation of the NPM package to obtain the description file information, but if the user does not install the NPM package, then sending the update information of the NPM package to the user will not only cause the user It will also increase the data transmission volume of this solution. In order to avoid this situation, the application provides the following solutions:

根据通讯信息将NPM软件包的更新信息发送给使用者,可以通过如下方式进行:Send the update information of the NPM package to the user according to the communication information, which can be done in the following ways:

B1,通过运行cli工具,通过读取描述文件信息获得用户的通讯信息,并确定该用户中已安装NPM软件包的使用者;B1, by running the cli tool, obtain the user's communication information by reading the description file information, and determine the user who has installed the NPM software package in the user;

B2,将NPM软件包的更新信息发送给该使用者。B2. Send the update information of the NPM software package to the user.

通过运行cli工具读取描述文件信息获得用户的通讯信息,这些用户是对应终端有NPM软件包对应的描述文件的所有用户,由于终端生成有NPM软件包的描述文件,但存在并未安装NPM软件包的情况,因此,需要从获得的所有通讯信息对应的用户中筛选出已经安装有NPM软件包的用户作为本申请中的NPM软件包的使用者。The communication information of users is obtained by running the cli tool to read the description file information. These users are all users whose terminals have description files corresponding to NPM software packages. Because the terminal generates description files of NPM software packages, but there is no NPM software installed Therefore, users who have installed the NPM software package need to be screened out from the users corresponding to all the obtained communication information as the users of the NPM software package in this application.

可选地,通过运行cli工具判断获得的通讯信息对应的用户中已经安装有NPM软件包的用户,将已经安装有NPM软件包的用户对应的通讯信息作为使用者的通讯信息,然后根据使用者的通讯信息将NPM软件包的更新信息发送给使用者。Optionally, the user who has installed the NPM software package among the users corresponding to the obtained communication information is judged by running the cli tool, and the communication information corresponding to the user who has installed the NPM software package is used as the communication information of the user, and then according to the user The newsletter sends updates to NPM packages to users.

本申请实施例提供的方案,利用cli工具筛选出已经安装有NPM软件包的用户对应的通讯信息,并将该部分用户的通讯信息作为使用者的通讯信息,能够实现精准地进行更新信息的投递,减少系统传输更新信息的数据量。In the solution provided by the embodiment of the present application, the cli tool is used to filter out the communication information corresponding to the user who has installed the NPM software package, and the communication information of the part of the user is used as the communication information of the user, which can realize the delivery of the update information accurately. , reducing the amount of data the system transmits update information.

上述实施例提供的节点包管理器NPM软件包更新提示方法,通过在NPM软件包安装之后、安装之前或NPM软件包的获取过程中获取使用者的通讯信息,丰富了获得使用者的通讯信息的途径,获得使用者的通讯信息之后,还可以定期或随时向使用者发送定向邮件,以提示用户NPM软件包版本存在更新,且告知用户详细的更新信息。The node package manager NPM software package update prompt method provided by the above embodiment enriches the method of obtaining the user's communication information by acquiring the user's communication information after the NPM software package is installed, before the installation or during the acquisition process of the NPM software package. In this way, after obtaining the user's communication information, a targeted email may be sent to the user periodically or at any time to prompt the user that there is an update of the NPM software package version, and inform the user of the detailed update information.

除此之外,本申请还提供了另一种实施方式,获得NPM软件包的使用者的通讯信息,可以包括如下步骤:In addition, the present application also provides another implementation, obtaining the communication information of the user of the NPM software package, which may include the following steps:

C1,向使用端发送通讯信息获取请求;C1, send a communication information acquisition request to the user;

C2,接收该使用端基于获取请求发送的使用者的通讯信息。C2: Receive the communication information of the user sent by the user based on the acquisition request.

该种方案中,服务器直接向已经安装有NPM软件包的使用者终端发送获取请求,该获取请求在用户端界面上可以展示为提示窗口,以提示使用者主动上报通讯信息,能够直接而快速地获得使用者的通讯信息。In this solution, the server directly sends an acquisition request to the user terminal that has already installed the NPM software package, and the acquisition request can be displayed as a prompt window on the user terminal interface to prompt the user to actively report the communication information, which can directly and quickly Get the user's communication information.

基于与本申请实施例所提供的方法相同的原理,本申请实施例还提供了一种节点包管理器NPM软件包的更新提示装置800,如图7所示,该装置可以包括:获取通讯信息模块810、发送更新信息模块820,其中:Based on the same principle as the method provided by the embodiment of the present application, the embodiment of the present application further provides an apparatus 800 for prompting the update of the NPM software package of the node package manager. As shown in FIG. 7 , the apparatus may include: acquiringcommunication information Module 810, sendingupdate information module 820, wherein:

获取通讯信息模块810,用于获取NPM软件包的使用者的通讯信息;an acquisitioncommunication information module 810, used for acquiring the communication information of the user of the NPM software package;

发送更新信息模块820,用于当NPM软件包发生更新时,根据通讯信息将NPM软件包的更新信息发送给使用者,更新信息包括更新内容;The sendingupdate information module 820 is used to send the update information of the NPM software package to the user according to the communication information when the NPM software package is updated, and the update information includes the update content;

其中,获取通讯信息模块包括通讯信息接收单元,通讯信息接收单元用于:Wherein, the acquiring communication information module includes a communication information receiving unit, and the communication information receiving unit is used for:

接收NPM软件包的使用端发送的通讯信息,通讯信息为发送端通过以下方式获取到的:Receive the communication information sent by the user of the NPM software package, and the communication information is obtained by the sender in the following ways:

获取NPM软件包对应的描述文件信息;根据描述文件信息,获取NPM软件包的使用者的通讯信息。Obtain the description file information corresponding to the NPM software package; according to the description file information, obtain the communication information of the user of the NPM software package.

本申请提供的节点包管理器NPM软件包的更新提示装置,通过预先获取NPM软件包的使用者的通讯信息,能够主动且及时地将NPM软件包的更新信息传递给使用者,而且,本申请提供的更新信息中包括更新内容,与现有的只提供更新版本号的更新信息相比,本申请提供的更新信息更为详细,有利于NPM软件包的使用者通过更新信息获知NPM软件包的详细更新信息。The update prompting device for the NPM software package of the node package manager provided by this application can actively and timely transmit the update information of the NPM software package to the user by obtaining the communication information of the user of the NPM software package in advance. The update information provided includes the update content. Compared with the existing update information that only provides the updated version number, the update information provided in this application is more detailed, which is beneficial for the users of the NPM software package to know the NPM software package through the update information. Detailed update information.

可选地,NPM软件包中包含用于获取描述文件信息的脚本,该脚本在NPM软件包安装完成时运行,通讯信息接收单元,还用于:Optionally, the NPM software package contains a script for obtaining description file information, the script is run when the installation of the NPM software package is completed, the communication information receiving unit is also used for:

在安装完成NPM软件包时,通过运行用于获取脚本获取描述文件信息。When the NPM package is installed, get the description file information by running the get script.

可选地,NPM软件包附带有配套的命令行交互接口cli工具,通讯信息接收单元,还用于:Optionally, the NPM software package comes with a supporting command line interactive interface cli tool, a communication information receiving unit, and is also used for:

通过运行NPM软件包附带的配套命令行交互接口cli工具,读取所述NPM软件包的描述文件信息。Read the description file information of the NPM software package by running the supporting command line interactive interface cli tool attached to the NPM software package.

可选地,获取通讯信息模块810,还用于:Optionally, the acquiringcommunication information module 810 is further used for:

向NPM软件包的使用端发送通讯信息获取命令;Send a communication information acquisition command to the user of the NPM software package;

接收使用端基于该获取命令返回的使用者的通讯信息。Receive the communication information of the user returned by the user based on the obtaining command.

可选地,通讯信息接收单元,还用于:Optionally, the communication information receiving unit is also used for:

接收NPM软件包的下载服务器发送的使用者的通讯信息,其中,使用者的通讯信息是下载服务器通过以下方式获取到的:Receive the user's communication information sent by the download server of the NPM software package, where the user's communication information is obtained by the download server in the following ways:

接收NPM软件包的使用端发送的软件包获取请求;Receive the package acquisition request sent by the consumer of the NPM package;

基于获取请求获取下载服务器的登录信息;Obtain the login information of the download server based on the obtaining request;

根据登录信息确定使用端对应的通讯信息。The communication information corresponding to the user is determined according to the login information.

可选地,更新提示装置800中的通讯信息包括邮箱地址。Optionally, the communication information in the update prompting device 800 includes an email address.

可选地,发送更新信息模块820,具体用于:Optionally, the sendingupdate information module 820 is specifically used for:

通过运行所述cli工具,读取描述文件信息获得用户的通讯信息,并确定所述用户中已安装NPM软件包的使用者;By running the cli tool, reading the description file information to obtain the user's communication information, and determining the user who has installed the NPM software package in the user;

将所述NPM软件包的更新信息发送给所述使用者。Update information of the NPM software package is sent to the user.

可选地,获取通讯信息模块810,还用于:Optionally, the acquiringcommunication information module 810 is further used for:

向使用端发送通讯信息获取请求;Send a communication information acquisition request to the user;

接收使用端基于该获取请求发送的使用者的通讯信息。Receive the communication information of the user sent by the user based on the obtaining request.

本申请实施例的节点包管理器NPM软件包的更新提示装置可执行本申请实施例所提供的节点包管理器NPM软件包的更新提示方法,其实现原理相类似,本申请各实施例中的节点包管理器NPM软件包的更新提示装置中的各模块、单元所执行的动作是与本申请各实施例中的节点包管理器NPM软件包的更新提示方法中的步骤相对应的,对于节点包管理器NPM软件包的更新提示装置的各模块的详细功能描述具体可以参见前文中所示的对应的节点包管理器NPM软件包的更新提示方法中的描述,此处不再赘述。The device for prompting the update of the NPM software package of the node package manager of the embodiment of the present application can execute the method for prompting the update of the NPM software package of the node package manager provided by the embodiment of the present application, and the implementation principle is similar. The actions performed by the modules and units in the device for prompting the update of the NPM software package of the node package manager correspond to the steps in the method for prompting the update of the NPM software package of the node package manager in the embodiments of the present application. For the detailed functional description of each module of the device for prompting NPM software package update of the package manager, refer to the description in the corresponding method for prompting update of the NPM software package of the node package shown above, which will not be repeated here.

基于与本申请的实施例中所示的方法相同的原理,本申请的实施例中还提供了一种电子设备,该电子设备可以包括但不限于:处理器和存储器;存储器,用于存储计算机程序;处理器,用于通过调用计算机程序执行本申请任一可选实施例所示的节点包管理器NPM软件包的更新提示方法。与现有技术相比,本申请通过预先获取NPM软件包的使用者的通讯信息,能够主动且及时地将NPM软件包的更新信息传递给使用者,而且,与现有的更新提示弹窗给出的更新信息相比,本申请提供的更新信息更为详细,有利于NPM软件包的使用者通过更新信息获知NPM软件包的详细更新信息。Based on the same principles as the methods shown in the embodiments of the present application, the embodiments of the present application also provide an electronic device, which may include but is not limited to: a processor and a memory; a memory for storing a computer A program; a processor, configured to execute the update prompting method of the node package manager NPM software package shown in any optional embodiment of the present application by invoking a computer program. Compared with the prior art, the present application can proactively and timely transmit the update information of the NPM software package to the user by obtaining the communication information of the user of the NPM software package in advance, and, in contrast to the existing update prompt pop-up window to the user. Compared with the update information provided by the present application, the update information provided in this application is more detailed, which is beneficial for the user of the NPM software package to obtain the detailed update information of the NPM software package through the update information.

在一个可选实施例中提供了一种电子设备,如图8所示,图8所示的电子设备4000可以为服务器,包括:处理器4001和存储器4003。其中,处理器4001和存储器4003相连,如通过总线4002相连。可选地,电子设备4000还可以包括收发器4004。需要说明的是,实际应用中收发器4004不限于一个,该电子设备4000的结构并不构成对本申请实施例的限定。In an optional embodiment, an electronic device is provided. As shown in FIG. 8 , theelectronic device 4000 shown in FIG. 8 may be a server, including: aprocessor 4001 and amemory 4003 . Theprocessor 4001 is connected to thememory 4003, for example, through thebus 4002. Optionally, theelectronic device 4000 may also include atransceiver 4004 . It should be noted that, in practical applications, thetransceiver 4004 is not limited to one, and the structure of theelectronic device 4000 does not constitute a limitation to the embodiments of the present application.

处理器4001可以是CPU(Central Processing Unit,中央处理器),通用处理器,DSP(Digital Signal Processor,数据信号处理器),ASIC(Application SpecificIntegrated Circuit,专用集成电路),FPGA(Field Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器4001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。Theprocessor 4001 may be a CPU (Central Processing Unit, central processing unit), a general-purpose processor, a DSP (Digital Signal Processor, data signal processor), an ASIC (Application Specific Integrated Circuit, an application-specific integrated circuit), an FPGA (Field Programmable Gate Array, Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure. Theprocessor 4001 may also be a combination for realizing computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

总线4002可包括一通路,在上述组件之间传送信息。总线4002可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(ExtendedIndustry Standard Architecture,扩展工业标准结构)总线等。总线4002可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Thebus 4002 may include a path to transfer information between the components described above. Thebus 4002 may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus or the like. Thebus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.

存储器4003可以是ROM(Read Only Memory,只读存储器)或可存储静态信息和指令的其他类型的静态存储设备,RAM(Random Access Memory,随机存取存储器)或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM(Electrically ErasableProgrammable Read Only Memory,电可擦可编程只读存储器)、CD-ROM(Compact DiscRead Only Memory,只读光盘)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。Thememory 4003 can be a ROM (Read Only Memory, read only memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory, random access memory) or other types that can store information and instructions. A dynamic storage device can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory, a CD-ROM) or other CD-ROM storage, CD-ROM storage (including compressed CDs, Laser Disc, Optical Disc, Digital Versatile Disc, Blu-ray Disc, etc.), magnetic disk storage medium or other magnetic storage device, or any other capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer medium, but not limited to this.

存储器4003用于存储执行本申请方案的应用程序代码,并由处理器4001来控制执行。处理器4001用于执行存储器4003中存储的应用程序代码,以实现前述方法实施例所示的内容。Thememory 4003 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by theprocessor 4001 . Theprocessor 4001 is configured to execute the application program code stored in thememory 4003 to implement the content shown in the foregoing method embodiments.

其中,电子设备包括但不限于:移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图8示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Among them, electronic devices include but are not limited to: mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), etc. Mobile terminals such as digital TVs, desktop computers, etc., as well as stationary terminals. The electronic device shown in FIG. 8 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.

本申请提供的服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。终端可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表等,但并不局限于此。终端以及服务器可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。The server provided by this application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, Cloud servers for basic cloud computing services such as cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited in this application.

人工智能云服务,一般也被称作是AIaaS(AI as a Service,中文为“AI即服务”)。这是目前主流的一种人工智能平台的服务方式,具体来说AIaaS平台会把几类常见的AI服务进行拆分,并在云端提供独立或者打包的服务。这种服务模式类似于开了一个AI主题商城:所有的开发者都可以通过API接口的方式来接入使用平台提供的一种或者是多种人工智能服务,部分资深的开发者还可以使用平台提供的AI框架和AI基础设施来部署和运维自已专属的云人工智能服务。本申请中,可以利用平台提供的AI框架和AI基础设施来实现本申请提供的节点包管理器NPM软件包的更新提示。Artificial intelligence cloud services are also generally referred to as AIaaS (AI as a Service, Chinese for "AI as a Service"). This is the current mainstream service method of artificial intelligence platforms. Specifically, the AIaaS platform will split several types of common AI services and provide independent or packaged services in the cloud. This service model is similar to opening an AI-themed mall: all developers can access one or more artificial intelligence services provided by the platform through API interfaces, and some senior developers can also use the platform Provided AI framework and AI infrastructure to deploy and operate its own dedicated cloud AI services. In this application, the AI framework and AI infrastructure provided by the platform can be used to realize the update prompt of the node package manager NPM software package provided by this application.

本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,当其在计算机上运行时,使得计算机可以执行前述方法实施例中相应内容。Embodiments of the present application provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on the computer, the computer can execute the corresponding content in the foregoing method embodiments.

应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the accompanying drawings are sequentially shown in the order indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is also It does not have to be performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.

需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。The aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by the electronic device, causes the electronic device to execute the methods shown in the foregoing embodiments.

根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实现方式中提供的节点包管理器NPM软件包的更新提示方法。According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the node package manager NPM software package update prompt method provided in the various optional implementation manners above .

可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,获取通讯信息模块还可以被描述为“获取NPM软件包的使用者的通讯信息模块”。The modules involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. Wherein, the name of the module does not constitute a limitation of the module itself under certain circumstances. For example, the module for obtaining communication information can also be described as "a module for obtaining communication information of a user of an NPM software package".

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in this application is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the technical solutions made of the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (11)

Translated fromChinese
1.一种节点包管理器NPM软件包的更新提示方法,其特征在于,包括:1. a kind of update prompt method of node package manager NPM software package, is characterized in that, comprises:获取NPM软件包的使用者的通讯信息;Get communication information for users of NPM packages;当所述NPM软件包发生更新时,根据所述通讯信息将所述NPM软件包的更新信息发送给使用者,所述更新信息包括更新内容;When the NPM software package is updated, send the update information of the NPM software package to the user according to the communication information, and the update information includes the update content;其中,所述获取NPM软件包的使用者的通讯信息,包括:Wherein, the communication information of the user who obtains the NPM software package includes:接收所述NPM软件包的使用端发送的所述通讯信息,所述通讯信息是所述使用端通过以下方式获取到的:Receive the communication information sent by the user of the NPM software package, where the communication information is obtained by the user in the following manner:获取所述NPM软件包对应的描述文件信息;Obtain the description file information corresponding to the NPM software package;根据所述描述文件信息,获取NPM软件包的使用者的通讯信息。According to the description file information, the communication information of the user of the NPM software package is acquired.2.根据权利要求1所述的方法,其特征在于,所述NPM软件包中包含用于获取所述描述文件信息的脚本,其中,所述脚本在所述NPM软件包安装完成时运行,所述获取所述NPM软件包对应的描述文件信息,包括:2. The method according to claim 1, wherein the NPM software package includes a script for obtaining the description file information, wherein the script is run when the NPM software package is installed, and the script is executed when the NPM software package is installed. Obtain the description file information corresponding to the NPM software package as described above, including:在安装完成所述NPM软件包时,通过运行所述脚本获取所述描述文件信息。When the NPM software package is installed, the description file information is obtained by running the script.3.根据权利要求1所述的方法,其特征在于,所述NPM软件包附带有配套的命令行交互接口cli工具,所述获取所述NPM软件包对应的描述文件信息,包括:3. The method according to claim 1, wherein the NPM software package is provided with a matching command line interactive interface cli tool, and the acquisition of the description file information corresponding to the NPM software package includes:通过运行NPM软件包附带的配套命令行交互接口cli工具,读取所述NPM软件包的描述文件信息。Read the description file information of the NPM software package by running the supporting command line interactive interface cli tool attached to the NPM software package.4.根据权利要求2至3中任一项所述的方法,其特征在于,所述获取NPM软件包的使用者的通讯信息,还包括:4. The method according to any one of claims 2 to 3, wherein the obtaining the communication information of the user of the NPM software package further comprises:向NPM软件包的使用端发送通讯信息获取命令;Send a communication information acquisition command to the user of the NPM software package;接收所述使用端基于所述通讯信息获取命令返回的所述使用者的通讯信息。The communication information of the user returned by the user based on the communication information acquisition command is received.5.根据权利要求1所述的方法,其特征在于,若所述NPM软件包为下载服务器上存储的软件包,所述获取NPM软件包的使用者的通讯信息,还包括:5. method according to claim 1, is characterized in that, if described NPM software package is the software package stored on the download server, described obtains the communication information of the user of NPM software package, also comprises:接收所述NPM软件包的下载服务器发送的所述使用者的通讯信息,其中,所述使用者的通讯信息是所述下载服务器通过以下方式获取到的:Receive the communication information of the user sent by the download server of the NPM software package, wherein the communication information of the user is obtained by the download server in the following manner:接收所述NPM软件包的使用端发送的软件包获取请求;receiving a software package acquisition request sent by the user of the NPM software package;基于所述获取请求获取所述下载服务器的登录信息;Obtain the login information of the download server based on the obtaining request;根据所述登录信息确定所述使用端对应的所述通讯信息。The communication information corresponding to the user is determined according to the login information.6.根据权利要求1至5中任一项所述的方法,其特征在于,所述通讯信息包括邮箱地址。6. The method according to any one of claims 1 to 5, wherein the communication information includes an email address.7.根据权利要求3所述的方法,其特征在于,所述根据所述通讯信息将所述NPM软件包的更新信息发送给使用者,包括:7. The method according to claim 3, wherein the sending the update information of the NPM software package to the user according to the communication information comprises:通过运行所述cli工具,读取所述描述文件信息获得用户的通讯信息,并确定所述用户中已安装所述NPM软件包的使用者;By running the cli tool, reading the description file information to obtain the user's communication information, and determining the user who has installed the NPM software package in the user;将所述NPM软件包的更新信息发送给所述使用者。Update information of the NPM software package is sent to the user.8.根据权利要求1所述的方法,其特征在于,所述获取NPM软件包的使用者的通讯信息,包括:8. The method according to claim 1, wherein the obtaining the communication information of the user of the NPM software package comprises:向所述使用端发送通讯信息获取请求;sending a communication information acquisition request to the user;接收所述使用端基于所述获取请求发送的所述使用者的通讯信息。Receive the communication information of the user sent by the user based on the acquisition request.9.一种节点包管理器NPM软件包的更新提示装置,其特征在于,包括:9. An update prompting device for a node package manager NPM software package, characterized in that, comprising:获取通讯信息模块,用于获取NPM软件包的使用者的通讯信息;Get the communication information module, which is used to obtain the communication information of the user of the NPM software package;发送更新信息模块,用于当所述NPM软件包发生更新时,根据所述通讯信息将所述NPM软件包的更新信息发送给使用者,更新信息包括更新内容;an update information sending module, configured to send the update information of the NPM software package to the user according to the communication information when the NPM software package is updated, and the update information includes the update content;其中,获取通讯信息模块包括通讯信息接收单元,所述通讯信息接收单元用于:Wherein, the acquiring communication information module includes a communication information receiving unit, and the communication information receiving unit is used for:接收所述NPM软件包的使用端发送的所述通讯信息,所述通讯信息为所述发送端通过以下方式获取到的:Receive the communication information sent by the user of the NPM software package, where the communication information is obtained by the sender in the following manner:获取所述NPM软件包对应的描述文件信息;根据所述描述文件信息,获取NPM软件包的使用者的通讯信息。Obtain the description file information corresponding to the NPM software package; and obtain the communication information of the user of the NPM software package according to the description file information.10.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1-8任一项所述的节点包管理器NPM安装包的更新提示方法。10. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements any one of claims 1-8 when executing the program The method for prompting update of the NPM installation package of the node package manager.11.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现权利要求1-8任一项所述的节点包管理器NPM安装包的更新提示方法。11. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, the node package manager according to any one of claims 1-8 is implemented The update prompt method of NPM installation package.
CN202010963242.6A2020-09-142020-09-14 Update prompt method, device, electronic device and storage medium for NPM installation packageActiveCN112083945B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010963242.6ACN112083945B (en)2020-09-142020-09-14 Update prompt method, device, electronic device and storage medium for NPM installation package

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010963242.6ACN112083945B (en)2020-09-142020-09-14 Update prompt method, device, electronic device and storage medium for NPM installation package

Publications (2)

Publication NumberPublication Date
CN112083945Atrue CN112083945A (en)2020-12-15
CN112083945B CN112083945B (en)2024-11-05

Family

ID=73736725

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010963242.6AActiveCN112083945B (en)2020-09-142020-09-14 Update prompt method, device, electronic device and storage medium for NPM installation package

Country Status (1)

CountryLink
CN (1)CN112083945B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112667280A (en)*2020-12-302021-04-16中车大连机车研究所有限公司Centralized control system for locomotive-mounted application software based on Git technology
CN113961228A (en)*2021-09-092022-01-21浙江吉利控股集团有限公司 A change reminder method, device, device and storage medium
CN114296778A (en)*2021-12-272022-04-08北京达佳互联信息技术有限公司Message notification method and device
US20250258927A1 (en)*2024-02-132025-08-14Endor Labs IncIdentifying an update of a code dependency to use based on risk and benefit trade-offs

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102348195A (en)*2011-10-132012-02-08中兴通讯股份有限公司Wireless communication terminal and software updating method thereof
CN104065695A (en)*2013-07-052014-09-24腾讯科技(深圳)有限公司Software update method, server, user end and system
WO2015058574A1 (en)*2013-10-232015-04-30北京奇虎科技有限公司Method and apparatus for implementing push notification of extensive application program
CN105302615A (en)*2015-11-242016-02-03小米科技有限责任公司Method and device for upgrading software
CN105978921A (en)*2016-07-292016-09-28重庆长安汽车股份有限公司Remote upgrading method for vehicle-mounted communication terminal
KR20170061993A (en)*2015-11-272017-06-07에릭슨엘지엔터프라이즈 주식회사Method and apparatus for providing of update state
US9942094B1 (en)*2016-12-282018-04-10T-Mobile Usa, Inc.Trusted execution environment-based UICC update
CN109962895A (en)*2017-12-262019-07-02比亚迪股份有限公司 A method and system, server and storage medium for updating automobile instrument interface
CN110750242A (en)*2019-09-192020-02-04北京字节跳动网络技术有限公司Method, system, medium and electronic device for deploying files

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102348195A (en)*2011-10-132012-02-08中兴通讯股份有限公司Wireless communication terminal and software updating method thereof
CN104065695A (en)*2013-07-052014-09-24腾讯科技(深圳)有限公司Software update method, server, user end and system
WO2015058574A1 (en)*2013-10-232015-04-30北京奇虎科技有限公司Method and apparatus for implementing push notification of extensive application program
CN105302615A (en)*2015-11-242016-02-03小米科技有限责任公司Method and device for upgrading software
KR20170061993A (en)*2015-11-272017-06-07에릭슨엘지엔터프라이즈 주식회사Method and apparatus for providing of update state
CN105978921A (en)*2016-07-292016-09-28重庆长安汽车股份有限公司Remote upgrading method for vehicle-mounted communication terminal
US9942094B1 (en)*2016-12-282018-04-10T-Mobile Usa, Inc.Trusted execution environment-based UICC update
CN109962895A (en)*2017-12-262019-07-02比亚迪股份有限公司 A method and system, server and storage medium for updating automobile instrument interface
CN110750242A (en)*2019-09-192020-02-04北京字节跳动网络技术有限公司Method, system, medium and electronic device for deploying files

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112667280A (en)*2020-12-302021-04-16中车大连机车研究所有限公司Centralized control system for locomotive-mounted application software based on Git technology
CN112667280B (en)*2020-12-302024-06-04中车大连机车研究所有限公司Locomotive vehicle-mounted application software centralized control system based on Git technology
CN113961228A (en)*2021-09-092022-01-21浙江吉利控股集团有限公司 A change reminder method, device, device and storage medium
CN114296778A (en)*2021-12-272022-04-08北京达佳互联信息技术有限公司Message notification method and device
US20250258927A1 (en)*2024-02-132025-08-14Endor Labs IncIdentifying an update of a code dependency to use based on risk and benefit trade-offs
US12393700B1 (en)*2024-02-132025-08-19Endor Labs IncIdentifying an update of a code dependency to use based on risk and benefit trade-offs

Also Published As

Publication numberPublication date
CN112083945B (en)2024-11-05

Similar Documents

PublicationPublication DateTitle
CN112083945B (en) Update prompt method, device, electronic device and storage medium for NPM installation package
CN111198859B (en)Data processing method, device, electronic equipment and computer readable storage medium
CN107644075B (en)Method and device for collecting page information
CN110928571A (en)Business program development method and device
CN107205031B (en)Information reminding method and device and terminal equipment
CN111309406A (en)Event processing method and device of application program and electronic equipment
CN113986258A (en) Service distribution method, device, device and storage medium
CN111783010B (en)Webpage blank page monitoring method, device, terminal and storage medium
CN109669720B (en)Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN110619101B (en)Method and apparatus for processing information
CN112084114B (en)Method and apparatus for testing interfaces
CN110851194A (en)Method and device for acquiring code for realizing new interface
CN110489326B (en)IDS-based HTTPAPI debugging method device, medium and equipment
CN110086880B (en)Method and apparatus for creating instances of network requests
CN111274104B (en)Data processing method, device, electronic equipment and computer readable storage medium
CN114253520A (en)Interface code generation method and device
CN112817737A (en)Method and device for calling model in real time
CN107391132B (en)Method, device and equipment for target App to execute preset action
CN111198853A (en)Data processing method and device, electronic equipment and computer readable storage medium
CN112905455B (en) Interface information verification method, device, equipment and storage medium
CN111460020B (en)Method, device, electronic equipment and medium for resolving message
CN114925066A (en)Data processing method and device, electronic equipment and storage medium
CN114861054A (en) Information collection method, device, electronic device and storage medium
CN114218160A (en) Log processing method, device, electronic device and medium
CN114595393A (en) A data processing method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp